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

[Bug]: Headless UI Vue > Listbox: disabled ListOption is focused on click #509

Closed
simonswiss opened this issue May 11, 2021 · 1 comment
Closed
Assignees

Comments

@simonswiss
Copy link
Contributor

simonswiss commented May 11, 2021

What package within Headless UI are you using?

@headlessui/vue

What version of that package are you using?

^1.2.0

What browser are you using?

Chrome, Safari

Reproduction repository

https://github.com/simonswiss/headlessui-vue-listbox-disabled-item-focus

Describe your issue

When clicking on a disabled ListboxOption item, the item enters in focus (with slightly different behaviours in different browsers, see repro README).

The assumption is that an element with a disabled="true" attribute should never be focusable/focused.

Screenshot (from Chrome)

image

The repro README has instructions on how to reproduce the issue.

@simonswiss simonswiss changed the title [Bug]: [Bug]: Headless UI Vue > Listbox: disabled ListOption is focused on click May 11, 2021
@RobinMalfait
Copy link
Member

Yep, good catch!

This should be fixed, and will be available in the next release.
You can already try it using npm install @headlessui/vue@dev or yarn add @headlessui/vue@dev.

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