-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug]: Enter transitions are janky with Listbox (rendered within Portal and Popper) #587
Comments
Same issue for me. I don't know if it works for you but for me it doesn't work at all even with duration-1000. If you look at the first example here https://headlessui.dev/react/listbox in code they have transition leave but transition enter is missing, so I'm wondering if it even works at all. |
I'm having the same issue. The Transition component's "enter" in general seems to be very inconsistent. |
Same issue here, enter animation is super janky, exit animation works fine. Repro: https://stackblitz.com/edit/react-9arfgj?file=src%2Fsheet.js |
I've stumbled upon this today, and it is the same for me - enter transition is not working at all in Chrome and Firefox when using Listbox. After further debugging, I've isolated two cases:
I've used the current version of @headlessui/react (1.4.0) |
I was having the same issue with Listbox, but somehow I'm now having the issue across all transitions. It's rather disappointing as I'd worked hard to use this transition component in a project and I'm now noticing a slew of janky inconsistencies all over the place (all for the enter animation). |
+1 |
Hey! Thank you for your bug report! Debugged the issues y'all are having and I'm pretty sure I figured it out in #1218. Still doing a few tests to verify but that PR should fix these issues. Will report back once I'm sure. |
The enter transition does not work for Listbox with version 1.6.3. The leave transition works smoothly. |
I also have this problem, animations don't work even after downgrading headlessui |
It's now working smoothly in 1.6.4. |
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.2.0
What browser are you using?
Chrome
Reproduction repository
https://codesandbox.io/s/headlessuireact-listbox-example-forked-wfwff?file=/src/Select.js
Describe your issue
Transition
's animation is quite janky on enter. I've set theTransition
enter and exit animations to be inverse of each other:The exit animation works as expected, but the enter animation looks janky depending on whether the focus is on the listbox button or elsewhere.
The text was updated successfully, but these errors were encountered: