Prevent TagTiles from being dragged into other droppables

for the time being at least.
pull/21833/head
lukebarnard 2018-01-25 22:52:19 +01:00
parent 701abb6a21
commit 73e3a594ac
2 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,10 @@ const TagPanel = React.createClass({
/>; />;
}); });
return <div className="mx_TagPanel"> return <div className="mx_TagPanel">
<Droppable droppableId="tag-panel-droppable"> <Droppable
droppableId="tag-panel-droppable"
type="draggable-TagTile"
>
{ (provided, snapshot) => ( { (provided, snapshot) => (
<div <div
className="mx_TagPanel_tagTileContainer" className="mx_TagPanel_tagTileContainer"

View File

@ -25,6 +25,7 @@ export default function DNDTagTile(props) {
key={props.tag} key={props.tag}
draggableId={props.tag} draggableId={props.tag}
index={props.index} index={props.index}
type="draggable-TagTile"
> >
{ (provided, snapshot) => ( { (provided, snapshot) => (
<div> <div>