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

Transition Not working with PopOver #1345

Closed
dynamite-bud opened this issue Apr 19, 2022 · 3 comments
Closed

Transition Not working with PopOver #1345

dynamite-bud opened this issue Apr 19, 2022 · 3 comments

Comments

@dynamite-bud
Copy link

@headlessui/react

1.5.0

stackblitz web container

https://stackblitz.com/edit/node-4hg8tw?file=src/PopOver.jsx

A public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways. Unfortunately we can't provide support without a reproduction, and your issue will be closed with no comment if this is not provided.

Describe your issue

As seen on this page https://headlessui.dev/react/popover. I am not able to achieve this behaviour with popover including transitions.

If you remove the transition tags line [44-52] and closing subsequent tag. The popover works fine but not with transition tag around it.

With Transition tag around Popover Panel.
https://user-images.githubusercontent.com/41326026/163940333-eb504222-4b59-4f80-8da9-3556bfae50f4.mp4

Without Transition Tag around Popover Panel
https://user-images.githubusercontent.com/41326026/163940379-97e7c5b3-1494-4d2c-ac51-d36cc4df6f23.mp4

@Soham-2224
Copy link

Transition component wont work
when transition component is added the dropdown won't show up. But when it is removed the dropdown works perfectly fine.

@RobinMalfait
Copy link
Member

Hey! Thank you for your bug report!
Much appreciated! 🙏

This is related to React 18, use he latest insiders build to fix this issue: https://stackblitz.com/edit/node-h2rwyp?file=package.json

More info can be found in: #681

@dynamite-bud
Copy link
Author

Thanks Robin

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

No branches or pull requests

3 participants