Skip to content

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

Answered by snowystinger
raleighwavv asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, looks like the gridlist is doing the selection on press start, which means the popover closes then as well. The user then finishes the click, which registers as a click outside and closes the parent.

So if we can close the gridlist popover during onPress, that'd solve it for now.
However, we should probably fix this in GridList by exposing the same prop that ListBox has, shouldSelectOnPressUp. That'd make your logic work out of the box.

Thanks for reporting this. I'm opening in Issue

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@raleighwavv
Comment options

@snowystinger
Comment options

Answer selected by raleighwavv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants