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
When combining Dialog and Transition components together and declare unmount: false then the Dialog will always add overflow:hidden to HTML root element when users are first landed on the page and result in a non-scrollable page, which is confusing and not expected. After manually opening and closing the Dialog the overflow won't be added in wrong cases.
The text was updated successfully, but these errors were encountered:
ItsRyanWu
changed the title
Dialog adds unnecessary 'overflow:hidden' to HTML element even if it's hidden initially
Dialog adds unnecessary overflow:hidden to HTML root element even if it's hidden initially
Jul 15, 2022
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
1.6.6
What browser are you using?
Chrome, Safari, etc
Reproduction URL
https://codesandbox.io/s/determined-ardinghelli-ftl8nn?file=/src/App.js
Describe your issue
When combining
Dialog
andTransition
components together and declareunmount: false
then theDialog
will always addoverflow:hidden
to HTML root element when users are first landed on the page and result in a non-scrollable page, which is confusing and not expected. After manually opening and closing theDialog
theoverflow
won't be added in wrong cases.The text was updated successfully, but these errors were encountered: