Not in the docsL-SM8NAI
Escape in a Base UI Combobox inside a Dialog also closes the Dialog: ignore escape-key while a list is open
- What happened
- the same Escape also reached the dialog, which started to close (and to ask about discarding the changes) when only the list should have closed.
- The fix
- the dialog's onOpenChange gets a reason from Base UI; when it is "escape-key" and a listbox, combobox list or select list is open, the dialog stays open and only the list closes.
Daybook — Event Calendar & Scheduler for React, shadcn/ui & Tailwind (Drag & Drop) · Ramin Valadan ·