For some reason, after dragging an item
the parent draggable receives a mouse click. The workaround is
to use onMouseDown for deselecting tags
pull/21833/head
lukebarnard 2018-01-16 10:44:11 +00:00
parent f391375dea
commit bda2d6b0a6
1 changed files with 2 additions and 1 deletions

View File

@ -111,13 +111,14 @@ const TagPanel = React.createClass({
selected={this.state.selectedTags.includes(tag)}
/>;
});
return <div className="mx_TagPanel" onClick={this.onClick}>
return <div className="mx_TagPanel">
<DragDropContext onDragEnd={this.onTagTileEndDrag}>
<Droppable droppableId="tag-panel-droppable">
{ (provided, snapshot) => (
<div
className="mx_TagPanel_tagTileContainer"
ref={provided.innerRef}
onMouseDown={this.onClick}
>
{ tags }
{ provided.placeholder }