Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't scroll lock when a Transition + Dialog is mounted but hidden #1681

Merged
merged 2 commits into from Jul 15, 2022

Conversation

thecrypticace
Copy link
Contributor

In React we weren't using the current show state to determine the initial "visibility" of transitions which meant that an mounted but hidden Transition + a mounted but hidden Dialog causes the document scroll lock to be applied when it shouldn't be because it's not being shown.

Just something we missed ¯\_(ツ)_/¯

Fixes #1676

@vercel
Copy link

vercel bot commented Jul 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview Jul 15, 2022 at 3:40PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview Jul 15, 2022 at 3:40PM (UTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dialog adds unnecessary overflow:hidden to HTML root element even if it's hidden initially
1 participant