-
Notifications
You must be signed in to change notification settings - Fork 64
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
[Question] Selecting interactive elements #95
Comments
Hey there! Thanks for opening this issue 🙏 That's a really good point you're bringing up there, and it totally makes sense in your use case to stop the event propagation if I'd love to bake this somehow into the library because I think this is a pretty common cause, but again, it shouldn't be the default because then we would break people. And to answer your, no there is currently no other way, and your solution of listening for the meta key is currently the right way to achieve what you wanted to do. Another thing is that we could add an event listener for the meta key on the container itself? So that people at least don't have to add this event themselves and they can disable for instance the click when the lib fires the I am open to any suggestions 👍 |
Hi there. :) Collegue of @andrzejkala here. IMHO workaround with meta click is kind of OK, but on the longer run it's hacky. It would be cool to add something built-in. My propositions:
It would be perfect if you could do it, but if you don't have time, you could point us places to edit or guide on what to remember when changing it, we could post a PR. |
Yep, I like your suggestion! I see if I can get that in ASAP 👍 |
Hi there, yet another colleague of both @andrzejkala and @johny-gog. |
Trying to work on it this weekend. |
Is there an option/param to disable the propagation of the click event while selecting interactive elements while the option
[selectWithShortcut]
is set totrue
?e.g. when in "select mode" (holding down the meta key) the
openDocument()
event would never be fired (just the element would be selected.I can detect the meta key on my side and just enable/disable the
openDocument()
functionality, but maybe there's some simple "out of the box" way that I'm not seeing?The text was updated successfully, but these errors were encountered: