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

Listbox button width is incorrect when the parent Popover has a scale transition #3612

Open
mohammadhosseinmoradi opened this issue Jan 14, 2025 · 0 comments

Comments

@mohammadhosseinmoradi
Copy link

mohammadhosseinmoradi commented Jan 14, 2025

The Listbox button width is incorrect when the parent Popover has a scale transition applied. The Popover transitions is from scale of 0.9 to 1. During this animation, the Listbox button retains its width based on the scaled state (0.9) instead of updating to the final size (1).

What package within Headless UI are you using?
@headlessui/react v2.2.0

What browser are you using?
Chrome

Reproduction URL
Please test repro in window size lg+.
headlessui-listbox-button-width-repro.git
codesandbox

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

1 participant