diff --git a/packages/react/src/components/SelectionListener/index.tsx b/packages/react/src/components/SelectionListener/index.tsx index 89ed2c26..24522538 100644 --- a/packages/react/src/components/SelectionListener/index.tsx +++ b/packages/react/src/components/SelectionListener/index.tsx @@ -60,7 +60,7 @@ function SelectionListenerInner !!s.onSelectionChangeHandlers; +const changeSelector = (s: ReactFlowState) => !!s.onSelectionChangeHandlers && !!s.elementsSelectable; export function SelectionListener({ onSelectionChange,