Releases: tailwindlabs/headlessui
Releases · tailwindlabs/headlessui
@headlessui/react@v2.2.9
Fixed
- Improve focus management in shadow DOM roots (#3794)
- Don't accidentally open the
Combobox
when touching theComboboxButton
while dragging on mobile (#3795) - Ensure sibling
Dialog
components are scrollable on mobile (#3796) - Infer
Combobox
type based ononChange
handler (#3798) - Allow home/end key default behavior inside
ComboboxInput
whenCombobox
is closed (#3798) - Ensure interacting with a
Dialog
on iOS works after interacting with a disallowed area (#3801) - Freeze Listbox values as soon as a value is selected (#3802)
- Ensure refs are forwarded when freezing data (#3390)
- Do not serialize React components into form fields (49e9e8e)
@headlessui/react@v2.2.8
Fixed
- Ensure we are not freezing data when the
static
prop is used (#3779) - Ensure
onChange
types are contravariant instead of bivariant (#3781) - Support
<summary>
as a focusable element inside<details>
(#3389) - Fix
Maximum update depth exceeded
crash when usingtransition
prop (#3782) - Ensure pressing
Tab
in theComboboxInput
, correctly syncs the input value (#3785) - Ensure
--button-width
and--input-width
have the latest value (#3786) - Fix 'Invalid prop
data-headlessui-state
supplied toReact.Fragment
' warning (#3788) - Ensure
element
inref
callback is always connected when rendering in aPortal
(#3789) - Ensure form state is up to date when using uncontrolled components (#3790)
- Ensure
data-open
onComboboxInput
is up to date (#3791) - Ensure changing the
immediate
prop value on theCombobox
component works as expected (#3792)
@headlessui/react@v2.2.7
@headlessui/react@v2.2.6
Fixed
- Fix immediately closing Listbox by requiring some cursor movement (#3762)
@headlessui/react@v2.2.5
Fixed
- Fix listbox closing immediately after opening on touch devices (#3755)
@headlessui/react@v2.2.4
Fixed
- Fix
Combobox
error (unexpected undefined) when using virtual mode (#3734)
@headlessui/react@v2.2.3
Added
- Add a quick trigger action to the
Menu
,Listbox
andCombobox
components (#3700)
Fixed
- Fix clicking
Label
component should open<Input type="file">
(#3707) - Ensure clicking on interactive elements inside
Label
component works (#3709) - Fix focus not returned to SVG Element (#3704)
- Fix
Listbox
not focusing first or last option on ArrowUp / ArrowDown (#3721) - Performance improvement: only re-render top-level component when nesting components e.g.:
Menu
inside aDialog
(#3722) - Fix closing
Menu
when otherMenu
is opened (#3726)
@headlessui/react@v2.2.2
@headlessui/react@v2.2.1
Added
- Accept
tabIndex
on theCheckbox
component (#3645) - Accept
tabIndex
on theRadioGroup
component (#3646)
Fixed
- Use correct
ownerDocument
when using internalPortal
component (#3594) - Bump
@tanstack/react-virtual
to fix warnings in React 19 projects (#3588) - Fix
aria-invalid
attributes to have a valid'true'
value (#3639) - Add missing
invalid
prop toCombobox
component (#3677) - Fix
Unexpected undefined
crash inCombobox
component withvirtual
mode (#3678)
@headlessui/tailwindcss@v0.2.2
- Support installing with Tailwind CSS v4 (#3634)