1
0
Fork 0
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:
Steffen Vogel 2018-08-29 19:34:46 +02:00
parent 04d5ab54d6
commit 3f1913dd49

View file

@ -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>
);
}