-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
var Floorplan = React.createClass({
render: function() {
var allBoothKeys = Object.keys(this.props.booths)
, self = this
, booths
if (allBoothKeys.length < 1) return null
booths = allBoothKeys.map(function(key) {
return (<Booth key={key} booth={self.props.booths[key]} />)
})
return (
<Draggable
start={{ x: 0, y: 0 }}
>
<div>
{booths}
</div>
</Draggable>
)
}
})Works. But if, inside div, I add
<img id="layout" src="img/layout.png" />
Does something weird: the drag starts on mouse up and I have to click again to stop the drag.
Metadata
Metadata
Assignees
Labels
No labels