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]: Vue components doesn't focus back to button #844

Closed
sibbng opened this issue Oct 4, 2021 · 1 comment · Fixed by #1186
Closed

[Bug]: Vue components doesn't focus back to button #844

sibbng opened this issue Oct 4, 2021 · 1 comment · Fixed by #1186
Assignees

Comments

@sibbng
Copy link

sibbng commented Oct 4, 2021

What package within Headless UI are you using?

@headlessui/vue

What version of that package are you using?

v1.4.1

What browser are you using?

Chrome

Reproduction repository

Read below

Describe your issue

https://headlessui.dev/vue/menu
https://headlessui.dev/vue/listbox
https://headlessui.dev/vue/dialog

These components doesn't focus back to button after clicking outside. You can check document.activeElement inside demo iframe. Their React versions are work as expected.

But Popover component is work as expected: https://headlessui.dev/vue/popover

@RobinMalfait
Copy link
Member

RobinMalfait commented Mar 2, 2022

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

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

You can already try it using npm install @headlessui/vue@insiders or yarn add @headlessui/vue@insiders.

I've also updated the Headless UI docs to reflect those changes.

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