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

Newly added tabs in the beginning appear in the wrong order #1834

Closed
wyozi opened this issue Sep 8, 2022 · 2 comments · Fixed by #1837
Closed

Newly added tabs in the beginning appear in the wrong order #1834

wyozi opened this issue Sep 8, 2022 · 2 comments · Fixed by #1837
Assignees

Comments

@wyozi
Copy link

wyozi commented Sep 8, 2022

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v1.7.0

What browser are you using?

Firefox

Reproduction URL

https://codesandbox.io/s/sweet-albattani-zyqvll

  1. Press "Insert" button on the insert new tab
  2. Open the first newly added tab
  3. The "Insertion" tab opens up instead of the newly added tab panel

Describe your issue

When dynamically adding new tabs to the tab list, the panels in Tab.Panels correspond to different tabs as the ones in Tab.List, even though they appear in the same order in the JSX.

@RobinMalfait
Copy link
Collaborator

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

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

You can already try it using:

  • npm install @headlessui/react@insiders.
  • npm install @headlessui/vue@insiders.

@wyozi
Copy link
Author

wyozi commented Sep 9, 2022

Thanks for the quick fix 🙇

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

Successfully merging a pull request may close this issue.

2 participants