Releases: tailwindlabs/headlessui
Releases · tailwindlabs/headlessui
@headlessui/[email protected]
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/[email protected]
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/[email protected]
@headlessui/[email protected]
@headlessui/[email protected]
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/[email protected]
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/[email protected]
Fixed
- Revert "Use the
import * as React from 'react'
pattern (#2242)
@headlessui/[email protected]
Fixed
- Don't break overflow when multiple dialogs are open at the same time (#2215)
@headlessui/[email protected]
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)
@headlessui/[email protected]
Fixed
- Ensure
disabled="false"
is not incorrectly passed to the underlying DOM Node (#2138) - Fix arrow key handling in
Tab
(after DOM order changes) (#2145) - Fix
Tab
key with non focusable elements inPopover.Panel
(#2147) - Don’t overwrite classes during SSR when rendering fragments (#2173)
- Improve
Combobox
accessibility (#2153) - Fix crash when reading
headlessuiFocusGuard
ofrelatedTarget
in theFocusTrap
component (#2203) - Fix
FocusTrap
inDialog
when there is only 1 focusable element (#2172) - Improve
Tabs
wrapping around when controlling the component and overflowing theselectedIndex
(#2213) - Fix
shadow-root
bug closingDialog
containers (#2217)
Added
- Allow setting
tabIndex
on theTab.Panel
(#2214)
Changed
- Adjust SSR detection mechanism (#2102)