You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the controlled usage of https://www.bits-ui.com/docs/components/dialog exactly like on the documentation and noticed that the whole page is still scrollable while the dialog is open.
I was able to find out that it is due to empty <Dialog.Trigger />, if using e.g. <Dialog.Trigger>foo</Dialog.Trigger> and clicking it, preventScroll works as expected.
Describe the bug
We use the controlled usage of https://www.bits-ui.com/docs/components/dialog exactly like on the documentation and noticed that the whole page is still scrollable while the dialog is open.
I was able to find out that it is due to empty
<Dialog.Trigger />
, if using e.g.<Dialog.Trigger>foo</Dialog.Trigger>
and clicking it,preventScroll
works as expected.Reproduction
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: