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

[insiders] Error when using Transition with an anchored, non-modal Listbox.Options inside a Dialog #3113

Closed
benface opened this issue Apr 19, 2024 · 1 comment
Assignees

Comments

@benface
Copy link

benface commented Apr 19, 2024

This is the sequel to #3107 – thanks again for fixing it so quickly. 🫶

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

0.0.0-insiders.dcbcd79

What browser are you using?

Chrome

Reproduction URL

https://codesandbox.io/p/sandbox/amazing-glitter-forked-cprxyp?file=%2Fsrc%2FApp.tsx

Describe your issue

Click on "Open dialog" and then click on "Option 1". This error appears:

Did you forget to passthrough the ref to the actual DOM node?

Notice that the issue does NOT happen if you:

  • remove the anchor or modal props from Listbox.Options
  • don't wrap the Listbox.Options in a Transition
  • don't wrap the Listbox in a Dialog
@RobinMalfait RobinMalfait self-assigned this Apr 19, 2024
@RobinMalfait
Copy link
Member

Hey!

This should be fixed by #3124, and will be available in the next release.

You can already try it using:

  • npm install @headlessui/react@insiders.

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

2 participants