-
Notifications
You must be signed in to change notification settings - Fork 377
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
action inside list block #1069
Comments
Yes, there is. What is tripping you is that the options are not selected on click, but on What I recommend is to prevent the propagation of the mouseup but still file the button's action on click:
|
Thx a lot Miguel, what do you think about adding this info to the docs? i think its a pretty common use case and is hard to figure out alone, at least it was for me, i'm probably will have to come back here to remember what i need to do, maybe adding this info to "the list" section of the docs, i could open a PR if you think its a good idea. |
Sure, although I'm not sure where to put it. I am biased about my own docs, where would you have looked for this information? That is where is should be. |
I think "basic customization > the list" is the best place to put it, a new topic called "prevent click propagation" what do you think ? |
Could work, yes. Do you want to make a PR? The documentation is just the dummy app inside this repo. It's pretty straightforward. |
is there a way to insert a button with an action inside the list and have this action called without selecting the item.
something like this
i've tried with bubbles=false and capturing the event and calling even.stopPropagation(),
but the selection is always called first 😢
The text was updated successfully, but these errors were encountered: