mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
fix undraggable toolbox items in Firefox
This commit is contained in:
parent
04d5ab54d6
commit
3f1913dd49
1 changed files with 4 additions and 5 deletions
|
@ -20,7 +20,6 @@
|
|||
******************************************************************************/
|
||||
|
||||
import React from 'react';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import { DragSource } from 'react-dnd';
|
||||
import classNames from 'classnames';
|
||||
import Icon from './icon';
|
||||
|
@ -56,20 +55,20 @@ class ToolboxItem extends React.Component {
|
|||
if (this.props.disabled === false) {
|
||||
return this.props.connectDragSource(
|
||||
<div className={itemClass}>
|
||||
<Button>
|
||||
<span className="btn btn-default">
|
||||
{this.props.icon && <Icon style={{marginRight: '5px'}} icon={this.props.icon} /> }
|
||||
{this.props.name}
|
||||
</Button>
|
||||
</span>
|
||||
</div>
|
||||
, {dropEffect});
|
||||
}
|
||||
else {
|
||||
return (
|
||||
<div className={itemClass}>
|
||||
<Button>
|
||||
<span className="btn btn-default">
|
||||
{this.props.icon && <Icon style={{marginRight: '5px'}} icon={this.props.icon} /> }
|
||||
{this.props.name}
|
||||
</Button>
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue