Skip to content

GridList (in Popover) closes containing Modal on select #7887

Closed
@snowystinger

Description

@snowystinger

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions