You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callbacks onNodesDelete and onEdgesDelete in Uncontrolled mode are triggered not only when some nodes/edges are selected and user press the deleteKeyCode (Backspace for example) but also when there aren't elements selected so basically everytime deleteKeyCode is pressed with focus on component
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Press on to have focus on it, then press the key set to delete elements (default is Backspace). You will receive as callback value for onNodesDelete/onEdgesDelete an empty array
Expected behavior
No callback events should be triggered if no elements are deleted
Screenshots or Videos
No response
Platform
OS: macOS
Browser: Chrome
Version: v10
Additional context
No response
The text was updated successfully, but these errors were encountered:
On version 10, pressing the backspace key also fires onEdgesChange multiple times and if you hold down backspace, triggers
Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
at StoreUpdater (webpack-internal:///./node_modules/react-flow-renderer/dist/esm/index.js:1027:20)
Describe the Bug
The callbacks onNodesDelete and onEdgesDelete in Uncontrolled mode are triggered not only when some nodes/edges are selected and user press the deleteKeyCode (Backspace for example) but also when there aren't elements selected so basically everytime deleteKeyCode is pressed with focus on component
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Press on to have focus on it, then press the key set to delete elements (default is Backspace). You will receive as callback value for onNodesDelete/onEdgesDelete an empty array
Expected behavior
No callback events should be triggered if no elements are deleted
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: