2
0

Improve old engine bubbles display robustness

This commit is contained in:
Baptiste Arnaud
2023-02-03 15:39:58 +01:00
parent 0b34321bf7
commit ae88d2cae1
7 changed files with 88 additions and 71 deletions

View File

@ -63,6 +63,7 @@ export const BlockNode = ({
setOpenedBlockId,
setFocusedGroupId,
previewingEdge,
isReadOnly,
} = useGraph()
const { mouseOverBlock, setMouseOverBlock } = useBlockDnd()
const { typebot, updateBlock } = useTypebot()
@ -111,6 +112,7 @@ export const BlockNode = ({
}
const handleMouseEnter = () => {
if (isReadOnly) return
if (mouseOverBlock?.id !== block.id)
setMouseOverBlock({ id: block.id, ref: blockRef })
if (connectingIds)