Releases: tailwindlabs/headlessui
Releases · tailwindlabs/headlessui
@headlessui/[email protected]
Added
- Add
immediate
prop to<Combobox />
for immediately opening the Combobox when theinput
receives focus (#2686) - Add
virtual
prop toCombobox
component (#2779) - Add new
Checkbox
component - Add new
Radio
component as an alternative to the existingRadioGroup.Option
component - Add new
Button
component - Add new
Input
component - Add new
Textarea
component - Add new
Select
component - Add new
Field
,Label
,Description
,Fieldset
andLegend
components - Add new
DataInteractive
component - Add new
anchor
andmodal
prop toComboboxOptions
,ListboxOptions
,MenuItems
andPopoverPanel
components - Add new
ListboxSelectedOption
component - Add new
MenuSection
,MenuHeading
, andMenuSeparator
components - Add new simplified
data-*
attributes as an alternative to the existingdata-headlessui-state="..."
attribute - Add
autoFocus
prop on focusable components (which maps todata-autofocus
)
Changed
- Bumped to React and React DOM 18
- Dialog is focused by default instead of the first focusable element (unless an element exists with a
data-autofocus
in the dialog)
Fixed
- Don't call
<Dialog>
'sonClose
twice on mobile devices (#2690) - Lazily resolve default containers in
<Dialog>
(#2697) - Ensure hidden
Tab.Panel
components are hidden from the accessibility tree (#2708) - Add support for
role="alertdialog"
to<Dialog>
component (#2709) - Ensure blurring the
Combobox.Input
component closes theCombobox
(#2712) - Allow changes to the
className
prop when the<Transition />
component is currently not transitioning (#2722) - Export (internal-only) component interfaces for TypeScript compiler (#2313)
- Fix infinite render-loop for
<Disclosure.Panel>
and<Popover.Panel>
whenas={Fragment}
(#2760) - Fix VoiceOver bug for
Listbox
component in Chrome (#2824) - Fix outside click detection when component is mounted in the Shadow DOM (#2866)
- Fix CJS types (#2880)
- Fix error when transition classes contain new lines (#2871)
- Fix iOS scroll lock glitches
@headlessui/[email protected]
Fixed
- Fix form elements for uncontrolled
<Listbox multiple>
and<Combobox multiple>
(#2626) - Use correct value when resetting
<Listbox multiple>
and<Combobox multiple>
(#2626) - Render
<MainTreeNode />
inPopoverGroup
component only (#2634) - Disable smooth scrolling when opening/closing
Dialog
components on iOS (#2635) - Don't assume
<Tab />
components are available when setting the next index (#2642) - Improve SSR of the
Disclosure
component (#2645) - Fix incorrectly focused
ComboboxInput
component on page load (#2654) - Improve resetting values when using the
nullable
prop on theCombobox
component (#2660) - Prevent scrolling when focusing a tab (#2674)
@headlessui/[email protected]
Fixed
- Use correct value when resetting
<Listbox multiple>
and<Combobox multiple>
(#2626) - Render
<MainTreeNode />
inPopover.Group
component only (#2634) - Disable smooth scrolling when opening/closing
Dialog
components on iOS (#2635) - Don't assume
<Tab />
components are available when setting the next index (#2642) - Fix incorrectly focused
Combobox.Input
component on page load (#2654) - Ensure
appear
works using theTransition
component (even when used with SSR) (#2646) - Improve resetting values when using the
nullable
prop on theCombobox
component (#2660) - Fix hydration of components inside
<Suspense>
(#2663) - Prevent scrolling when focusing a tab (#2674)
@headlessui/[email protected]
Fixed
- Ensure the caret is in a consistent position when syncing the
Combobox.Input
value (#2568) - Improve "outside click" behaviour in combination with 3rd party libraries (#2572)
- Improve performance of
Combobox
component (#2574) - Ensure IME works on Android devices (#2580)
- Calculate
aria-expanded
purely based on the open/closed state (#2610) - Submit form on
Enter
even if no submit-like button was found (#2613)
@headlessui/[email protected]
@headlessui/[email protected]
Fixed
- Ensure the caret is in a consistent position when syncing the
Combobox.Input
value (#2568) - Improve "outside click" behaviour in combination with 3rd party libraries (#2572)
- Ensure IME works on Android devices (#2580)
- Calculate
aria-expanded
purely based on the open/closed state (#2610) - Submit form on
Enter
even if no submit-like button was found (#2613)
@headlessui/[email protected]
Fixed
- Fix memory leak in
Popover
component (#2430) - Ensure
FocusTrap
is only active when the givenenabled
value istrue
(#2456) - Ensure the exposed
activeIndex
is up to date for theCombobox
component (#2463) - Improve control over
Menu
andListbox
options while searching (#2471) - Consider clicks inside iframes to be "outside" (#2485)
- Ensure moving focus within a
Portal
component, does not close thePopover
component (#2492)
Changed
- Move
types
condition to the front (#2469)
@headlessui/[email protected]
Added
- [internal] add demo mode to
Menu
andPopover
components (#2448)
Fixed
- Ensure
FocusTrap
is only active when the givenenabled
value istrue
(#2456) - Stop
<Transition appear>
from overwriting classes on re-render (#2457) - Improve control over
Menu
andListbox
options while searching (#2471) - Consider clicks inside iframes to be "outside" (#2485)
- Ensure moving focus within a
Portal
component, does not close thePopover
component (#2492)
Changed
- Move
types
condition to the front (#2469)
@headlessui/[email protected]
Fixed
- Fix focus styles showing up when using the mouse (#2347)
- Disable
ComboboxInput
when itsCombobox
is disabled (#2375) - Add
FocusTrap
event listeners once document has loaded (#2389) - Don't scroll-lock
<Dialog>
when wrapping transition isn't showing (#2422) - Ensure DOM
ref
is properly handled in theRadioGroup
component (#2424)
Added
- Add
form
prop to form-like components such asRadioGroup
,Switch
,Listbox
, andCombobox
(#2356)
@headlessui/[email protected]
Fixed
- Add ESM and
types
paths topackage.json
for Tailwind CSS plugin (#2382)