feat: clear selection when starting new selection.
This commit is contained in:
@@ -57,6 +57,8 @@ const UserSelection = memo(({ isSelectionMode, onClick, onContextMenu, onWheel,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
store.getState().resetSelectedElements();
|
||||||
|
|
||||||
const reactFlowNode = (event.target as Element).closest('.react-flow')!;
|
const reactFlowNode = (event.target as Element).closest('.react-flow')!;
|
||||||
containerBounds.current = reactFlowNode.getBoundingClientRect();
|
containerBounds.current = reactFlowNode.getBoundingClientRect();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user