New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(deleteSelectedElements): add deleteSelectedElements
method
#2432
Conversation
Thanks for your contribution! Looks good to me, but could you do it against the v11 branch? Thanks! |
okay, I am about to close this PR and will do it against the v11 branch in another PR. Many thanks!! |
@moklick hey mocklick , when I checkout out to branch v11 on my Mac , I am troubled why this happen on my side. Sorry to trouble you but look forward to your help. Thanks!! |
did you try to do |
yes, I did these steps, It seems that the |
When later I re-pull the latest codes of the repo , the issues above disappeared . |
Thanks to the great job of react-flow, we can delete selected elements by pressing the
deleteKeyCode
, however, in some cases we may also want to delete them by clicking a delete button in the toolbar. This PR exportdeleteSelectedElements
method in useReactFlow hook so that all people can use if they need.