Releases: tailwindlabs/headlessui
Releases · tailwindlabs/headlessui
@headlessui/react@v2.1.3
@headlessui/react@v2.1.2
Fixed
- Fix prematurely added anchoring styles on
ListboxOptions
(#3337) - Ensure
unmount
onDialog
works in combination with thetransition
prop onDialogBackdrop
andDialogPanel
components (#3352) - Fix crash in
Combobox
component when invirtual
mode when options are empty (#3356) - Fix hanging tests when using
anchor
prop (#3357) - Fix
transition
andfocus
prop combination forPopoverPanel
component (#3361) - Fix outside click in nested portalled
Popover
components (#3362) - Fix restoring focus to correct element when closing
Dialog
component (#3365) - Fix
flushSync
warning forCombobox
component withimmediate
prop enabled (#3366)
@headlessui/react@v2.1.1
@headlessui/react@v2.1.0
We just released Headless UI v2.1 for React, which dramatically simplifies our transition APIs and adds support for rendering multiple dialogs as siblings. See our announcement blog to learn more.
Changelog
Added
- Add ability to render multiple
Dialog
components at once (without nesting them) (#3242) - Add new data-attribute-based transition API (#3273, #3285, #3307, #3309, #3312)
- Add
DialogBackdrop
component (#3307, #3310) - Add
PopoverBackdrop
component to replacePopoverOverlay
(#3308)
Fixed
- Keep
Combobox
open when clicking scrollbar inComboboxOptions
(#3249) - Ensure
ComboboxInput
does not sync with current value while typing (#3259) - Fix visual jitter in
Combobox
component when using native scrollbar (#3190) - Improve UX by freezing
ComboboxOptions
while closing (#3304) - Merge incoming
style
prop onComboboxOptions
,ListboxOptions
,MenuItems
, andPopoverPanel
components (#3250) - Prevent focus on
Checkbox
when it isdisabled
(#3251) - Use
useId
instead of React internals (for React 19 compatibility) (#3254) - Cancel outside click behavior on touch devices when scrolling (#3266)
- Correctly apply conditional classes when using
Transition
andTransitionChild
components (#3303)
Changed
- Allow using the
Tab
andShift+Tab
keys when theListbox
component is open (#3284)
@headlessui/tailwindcss@v0.2.1
@headlessui/react@v2.0.4
Fixed
- [internal] Don’t set a focus fallback for Dialog’s in demo mode (#3194)
- Ensure page doesn't scroll down when pressing
Escape
to close theDialog
component (#3218) - Fix crash when toggling between
virtual
and non-virtual mode inCombobox
component (#3236) - Ensure tabbing to a portalled
PopoverPanel
component moves focus inside (without usingPortalGroup
) (#3239) - Only handle form reset when
defaultValue
is used (#3240)
Deprecated
- Mark
SwitchGroup
as deprecated, preferField
instead (#3232)
Changed
- Use native
fieldset
instead ofdiv
by default forFieldset
component (#3237)
@headlessui/vue@v1.7.22
@headlessui/react@v2.0.3
Fixed
- Make sure disabling demo mode on
Combobox
works (#3182)
@headlessui/react@v2.0.2
Fixed
- Improve performance of internal
useInertOthers
hook (#3181)
@headlessui/react@v2.0.1
Fixed
- Remove accidental deprecation comments on
DialogPanel
andDialogTitle
(#3176)