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
However, I noticed that it's not possible by default for my list items to listen for clicks. It seems that the framework attaches an event handler on the dialog and stops propagation, not letting me any chance to handle the selection of an item.
I guess I need to write a new adapter for the foundation to let a click happen in a dialog? But that seems way too heavy.
What I don't get as well is that in the official example and guideline this kind of list is clearly a list of items that you can select. However,I have to implement the css when hovering an item myself as well as the event handlers (and as mentioned above maybe even rewrite an adapter for this simple issue?).
Thank you for any advice
The text was updated successfully, but these errors were encountered:
It seems wrong to me that the events are being eaten by the dialog. In a standard HTML <dialog> element this is not the case. The component MCW provides should reflect that natural state on the web.
I'd like to use the dialog with list items. Of course the purpose is for a user to select an item. See example on official site "choose a ringtone": https://material-components-web.appspot.com/dialog.html
However, I noticed that it's not possible by default for my list items to listen for clicks. It seems that the framework attaches an event handler on the dialog and stops propagation, not letting me any chance to handle the selection of an item.
https://jsfiddle.net/ftmn974x/
I guess I need to write a new adapter for the foundation to let a click happen in a dialog? But that seems way too heavy.
What I don't get as well is that in the official example and guideline this kind of list is clearly a list of items that you can select. However,I have to implement the css when hovering an item myself as well as the event handlers (and as mentioned above maybe even rewrite an adapter for this simple issue?).
Thank you for any advice
The text was updated successfully, but these errors were encountered: