Fix issue with drag and drop breaking when dragging token bar token group

This commit is contained in:
Mitchell McCaffrey
2021-08-10 06:56:45 +10:00
parent 29bf7ee36b
commit fdc4aba009
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ function TokenBarTokenGroup({
draggable,
}: TokenBarTokenGroupProps) {
const { attributes, listeners, setNodeRef, isDragging } = useDraggable({
id: group.id,
id: draggable ? group.id : "",
disabled: !draggable,
});
const [isOpen, setIsOpen] = useState(false);