-
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
unmount="false" breaks tabindex="-1" #2110
Comments
Hey! Thank you for your bug report! Wrote a bit more about the problem and the potential solutions in the PR itself (#2214), but we now allow to set the This should be fixed by #2214, and will be available in the next release. You can already try it using:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What package within Headless UI are you using?
@headlessui/vue
What version of that package are you using?
v1.7.7
What browser are you using?
Chrome.
Reproduction URL
https://stackblitz.com/edit/vue3-tailwind-zazhzk?file=package.json,src%2Fcomponents%2FHelloWorld.vue
Observe that:
:unmount="false"
, after selecting a tab and pressingtab
, you go to one of the posts with the focus directly.:unmount="false"
, focus first moves to the whole panel.tabindex="-1"
focus also first moves to the whole panel.Describe your issue
I can set
tabindex="-1"
onTabPanel
elements to disable tabbing into the panel (see #1433). But if I also set:unmount="false"
(see #740) thentabindex
is re-set to 0 when switching between panels, re-enabling tabbing into the panel. Ideally, this would not happen, iftabindex
is set to-1
explicitly.The text was updated successfully, but these errors were encountered: