Commit 3f1913dd authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

fix undraggable toolbox items in Firefox

parent 04d5ab54
......@@ -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>
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment