Skip to content

Can't click ModalOverlay to close an open Combobox #5338

Open
@snowystinger

Description

@snowystinger

Discussed in #5337

Originally posted by elilabes November 1, 2023
I have modal that has a number of Comboboxes in them. I'd like to make it so that when you click anywhere not in the Combobox it closes the Combobox. Currently it seems, I have to click inside the modal content area to close the Combobox.

I am not sure if I am missing some documentation or if this is expected (i'd hope not, it is a real pain).

Here is a rough example using React Aria Components' demo. https://codesandbox.io/s/react-typescript-forked-2ly428?file=/src/App.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🩺 To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions