f3c70aa9d1
* only record the restoreElement once enabled Currently we are collecting the `restoreElement` even if the focus trap is not enabled. When we unmount we try to restore it. The problem is the moment you unmount you want to restore but only if the focus trap was enabled. Another issue is that the dialog state will be `closed` before we get to the `onUmount` hook. So there is probably a cleaner way to fix this, but this does the trick as well where we only record the restoreElement the moment the focus trap gets enabled. * update changelog
@headlessui/vue
A set of completely unstyled, fully accessible UI components for Vue 3, designed to integrate beautifully with Tailwind CSS.
Installation
Please note that this library only supports Vue 3.
# npm
npm install @headlessui/vue
# Yarn
yarn add @headlessui/vue
Documentation
For full documentation, visit headlessui.dev.
Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using the library: