React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
Clicking a node doesn't select the node if you have panOnDrag={false} panOnScroll={true} selectionOnDrag={true} instead it selects the pane element. Before migrating to v12 it was working fine. Even the onClick event doesn't get fired.
Steps to reproduce the bug or issue
Click any node
Notice that the node doesn't turn red i.e. not selected.
Also look at the console the node click event doesn't get triggered.
Expected behavior
As a user, I expected that when I click any node it should select the node and turn red.
What platform were you using when you found the bug?
Live code example
https://codesandbox.io/s/xyflow-react-select-node-c7jvlg?file=/number-input.js:108-121
Describe the Bug
Clicking a
node
doesn't select thenode
if you havepanOnDrag={false} panOnScroll={true} selectionOnDrag={true}
instead it selects the pane element. Before migrating tov12
it was working fine. Even theonClick
event doesn't get fired.Steps to reproduce the bug or issue
red
i.e. not selected.console
the node click event doesn't get triggered.Expected behavior
As a user, I expected that when I click any node it should select the node and turn red.
Screenshots or Videos
https://github.com/xyflow/xyflow/assets/54026804/cfc038cc-269d-482d-a088-6468fc32ed46
Additional context
No response