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
Originally posted by raleighwavv March 7, 2025
As noted in another question, I've needed to implement a GridList in a Popover in order to allow buttons inside the option items.
The issue I'm running into now is that when the GridList is inside a Modal and extends into the ModalOverlay, selecting a GridListItem closes the Modal, whereas a Select component simply closes its popover.
Here is a StackBlitz example demonstrating the issue.
I wanted to ask here first before opening an issue in case there is some known way for the GridList to better mimic the selection behavior of a Select.
Thank you!
The text was updated successfully, but these errors were encountered:
@snowystinger To prevent unexpected interactions, should onClose only be triggered when both onInteractOutsideStart and onInteractOutside occur on the same visibleOverlay?
Hey @snowystinger , In the stackblitz code provided, it just a one line code addition which will stop this behaviour that is using e.stopPropagation() on the handleSelectionChange function.
The new function will look like
We should probably have GridList expose
shouldSelectOnPressUp
like we do in ListBox. See discussion for example use case.Discussed in #7880
Originally posted by raleighwavv March 7, 2025
As noted in another question, I've needed to implement a GridList in a Popover in order to allow buttons inside the option items.
The issue I'm running into now is that when the GridList is inside a Modal and extends into the ModalOverlay, selecting a GridListItem closes the Modal, whereas a Select component simply closes its popover.
Here is a StackBlitz example demonstrating the issue.
I wanted to ask here first before opening an issue in case there is some known way for the GridList to better mimic the selection behavior of a Select.
Thank you!
The text was updated successfully, but these errors were encountered: