Skip to content

Conversation

@RobinMalfait
Copy link
Member

This PR allows overriding the tabIndex of the <Switch /> component if you need to change the tab index. However, we still need it to be focusable using the keyboard so we will always fallback to 0 even if -1 was pased.

Fixes: #2915

@vercel
Copy link

vercel bot commented Feb 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2024 4:20pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2024 4:20pm

@RobinMalfait RobinMalfait merged commit 0e0277a into main Feb 3, 2024
@RobinMalfait RobinMalfait deleted the fix/issue-2915 branch February 3, 2024 16:31
RobinMalfait added a commit that referenced this pull request Apr 15, 2024
* allow setting a custom `tabIndex` on the `<Switch />` component

* update changelog
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 this pull request may close these issues.

Switch does not support tabindex

2 participants