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

Only render the Dialog on the client #1566

Merged
merged 2 commits into from Jun 9, 2022
Merged

Conversation

RobinMalfait
Copy link
Collaborator

@RobinMalfait RobinMalfait commented Jun 9, 2022

This PR fixes an issue with our Dialog components in Vue and server side rendering.
Right now, we will only render the Dialog component on the client and not on the server.

Once we figure out the correct way of server side rendering the Dialog then we can revisit this
behaviour. But for now, this at least fixes incorrect SSR and hydration issues where closing the
Dialog looks like it is still there even though that's the static SSR version of the Dialog.

Fixes: tailwindlabs/tailwindui-issues#1223

@vercel
Copy link

vercel bot commented Jun 9, 2022

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

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview Jun 9, 2022 at 0:21AM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview Jun 9, 2022 at 0:21AM (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.

TailwindUI Modals not closable in Vue
1 participant