-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Clicking on item with subitems causes type error #81
Labels
Comments
thanks, I'll take a look duplicates #79 |
Ni55aN
added a commit
that referenced
this issue
Mar 7, 2024
create empty handler function to avert crash when item with subitems is clicked clicked
🎉 This issue has been resolved in version 2.0.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clicking on a menu item that has subitems (where the desired behavior is to have no action) causes the error:
props.data.handler is not a function
This error can be reproduced by clicking on the "extra" menu item found at the example here.
I imagine the solution is to add a empty function like:
handler() {}
on this line. I forked this repo in the hopes of making a PR with this change, however I can't ensure it fixes the problem because the rete-cli emits a "Type generating failed" error when attempting to compile the context-menu-plugin.
The text was updated successfully, but these errors were encountered: