@ -85,7 +85,7 @@ export const ButtonsItemNode = ({ item, indices, isMouseOver }: Props) => {
|
|||||||
color={item.content !== 'Click to edit' ? 'inherit' : 'gray.500'}
|
color={item.content !== 'Click to edit' ? 'inherit' : 'gray.500'}
|
||||||
cursor="pointer"
|
cursor="pointer"
|
||||||
/>
|
/>
|
||||||
<EditableInput />
|
<EditableInput onMouseDownCapture={(e) => e.stopPropagation()} />
|
||||||
</Editable>
|
</Editable>
|
||||||
<HitboxExtension />
|
<HitboxExtension />
|
||||||
<SlideFade
|
<SlideFade
|
||||||
|
@ -114,7 +114,10 @@ export const ItemNodesList = ({
|
|||||||
detachItemFromBlock({ groupIndex, blockIndex, itemIndex })
|
detachItemFromBlock({ groupIndex, blockIndex, itemIndex })
|
||||||
setPosition(absolute)
|
setPosition(absolute)
|
||||||
setRelativeCoordinates(relative)
|
setRelativeCoordinates(relative)
|
||||||
setDraggedItem(item)
|
setDraggedItem({
|
||||||
|
...item,
|
||||||
|
blockId: block.id,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const stopPropagating = (e: React.MouseEvent) => e.stopPropagation()
|
const stopPropagating = (e: React.MouseEvent) => e.stopPropagation()
|
||||||
|
Reference in New Issue
Block a user