Releases: tailwindlabs/headlessui
Releases · tailwindlabs/headlessui
@headlessui/react@v1.7.14
Fixed
- Fix focus styles showing up when using the mouse (#2347)
- Fix "Can't perform a React state update on an unmounted component." when using the
Transition
component (#2374) - Add
FocusTrap
event listeners once document has loaded (#2389) - Fix
className
hydration for<Transition appear>
(#2390) - Improve
Combobox
types to improve false positives (#2411) - Merge
className
correctly when it’s a function (#2412)
Added
- Add
form
prop to form-like components such asRadioGroup
,Switch
,Listbox
, andCombobox
(#2356)
@headlessui/vue@v1.7.12
Fixed
- Enable native label behavior for
<Switch>
where possible (#2265) - Allow root containers from the
Dialog
component in theFocusTrap
component (#2322) - Cleanup internal TypeScript types (#2329)
- Fix restore focus to buttons in Safari, when
Dialog
component closes (#2326) - Ensure hooks in the
FocusTrap
component only apply when mounted (#2331)
@headlessui/react@v1.7.13
Fixed
- Ensure
Transition
component completes if nothing is transitioning (#2318) - Enable native label behavior for
<Switch>
where possible (#2265) - Allow root containers from the
Dialog
component in theFocusTrap
component (#2322) - Fix
XYZPropsWeControl
and cleanup internal TypeScript types (#2329) - Fix invalid warning when using multiple
Popover.Button
components inside aPopover.Panel
(#2333) - Fix restore focus to buttons in Safari, when
Dialog
component closes (#2326)
@headlessui/vue@v1.7.11
@headlessui/react@v1.7.12
@headlessui/vue@v1.7.10
Fixed
- Don’t fire
afterLeave
event more than once for a given transition (#2267) - Move
aria-multiselectable
to[role=listbox]
in theCombobox
component (#2271) - Re-focus
Combobox.Input
when aCombobox.Option
is selected (#2272) - Ensure we reset the
activeOptionIndex
if the active option is unmounted (#2274) - Start cleanup phase of the
Dialog
component when going into theClosing
state (#2264)
@headlessui/react@v1.7.11
Fixed
- Ensure we handle
null
values for thedataRef
correctly (#2258) - Move
aria-multiselectable
to[role=listbox]
in theCombobox
component (#2271) - Re-focus
Combobox.Input
when aCombobox.Option
is selected (#2272) - Ensure we reset the
activeOptionIndex
if the active option is unmounted (#2274) - Improve
Ref
type for forwardedSwitch
's ref (#2277) - Start cleanup phase of the
Dialog
component when going into theClosing
state (#2264)
@headlessui/react@v1.7.10
Fixed
- Revert "Use the
import * as React from 'react'
pattern (#2242)
@headlessui/vue@v1.7.9
Fixed
- Don't break overflow when multiple dialogs are open at the same time (#2215)
@headlessui/react@v1.7.9
Fixed
- Fix SSR tab hydration when using Strict Mode in development (#2231)
- Don't break overflow when multiple dialogs are open at the same time (#2215)
- Fix "This
Suspense
boundary received an update before it finished hydrating" error in theDisclosure
component (#2238) - Use the
import * as React from 'react'
pattern (#2242)