question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Enter transitions are janky with Listbox (rendered within Portal and Popper)

See original GitHub issue

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 the Transition enter and exit animations to be inverse of each other:

                      enter="transition ease-out duration-500"
                      enterFrom="transform opacity-0 scale-0"
                      enterTo="transform opacity-100 scale-100"
                      leave="transition ease-in duration-500"
                      leaveFrom="transform opacity-100 scale-100"
                      leaveTo="transform opacity-0 scale-0"

The exit animation works as expected, but the enter animation looks janky depending on whether the focus is on the listbox button or elsewhere.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:13
  • Comments:10

github_iconTop GitHub Comments

1reaction
MTaghiniacommented, May 31, 2022

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. Thanks for the update.

1reaction
MTaghiniacommented, May 28, 2022

The enter transition does not work for Listbox with version 1.6.3. The leave transition works smoothly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled - Snap!
Instead this block reports how many milliseconds it took to perform the computation. start time start time time in milliseconds Call the reporter...
Read more >
333333 23135851162 the 13151942776 of 12997637966
... 13151942776 of 12997637966 and 12136980858 to 9081174698 a 8469404971 in ... child 119602514 keep 119394206 enter 119376975 california 119294962 porn ...
Read more >
count_1w100k.txt - Peter Norvig
THE 23135851162 OF 13151942776 AND 12997637966 TO 12136980858 A 9081174698 IN ... CHILD 119747393 KEEP 119602514 ENTER 119394206 CALIFORNIA 119376975 PORN ...
Read more >
Spelling dictionary - Wharton Statistics
... bufogenin bufonidae bufotalin bufotenine bufotoxin bug bugaboo bugbear bugbearish bugbears bugged bugger buggered buggeries buggering buggers buggery ...
Read more >
game - The Department of Computer Science - Home - New
the 23135851162 of 13151942776 and 12997637966 to 12136980858 a 9081174698 in ... child 119747393 keep 119602514 enter 119394206 california 119376975 porn ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found