-
-
Notifications
You must be signed in to change notification settings - Fork 369
Closed as not planned
Labels
component: dialogChanges related to the dialog component.Changes related to the dialog component.type: expected behaviorThe current behavior is already the one expected.The current behavior is already the one expected.
Description
Bug report
Current behavior
Dialog is closing on an outside click even though modal behavior enabled.
This is true whether true or 'trap-focus' is passed.
<Dialog.Root
modal={true | 'trap-focus'}
>
{...}
</Dialog.Root>Expected behavior
Dialog shouldn't close on an outside click when modal behavior enabled.
Reproducible example
https://stackblitz.com/edit/awgibgiu
Base UI version
v1.0.0
Which browser are you using?
Chrome 143.0.7499.41
Firefox 146.0 (64-bit)
Brave 1.85.116 (Official Build) Chromium: 143.0.7499.110
Which OS are you using?
Windows 10 Pro
Windows 11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: dialogChanges related to the dialog component.Changes related to the dialog component.type: expected behaviorThe current behavior is already the one expected.The current behavior is already the one expected.