Releases: tailwindlabs/headlessui
Releases · tailwindlabs/headlessui
@headlessui/[email protected]
Added
- Add
immediateprop to<Combobox />for immediately opening the Combobox when theinputreceives focus (#2686) - Add
virtualprop toComboboxcomponent (#2779) - Add new
Checkboxcomponent - Add new
Radiocomponent as an alternative to the existingRadioGroup.Optioncomponent - Add new
Buttoncomponent - Add new
Inputcomponent - Add new
Textareacomponent - Add new
Selectcomponent - Add new
Field,Label,Description,FieldsetandLegendcomponents - Add new
DataInteractivecomponent - Add new
anchorandmodalprop toComboboxOptions,ListboxOptions,MenuItemsandPopoverPanelcomponents - Add new
ListboxSelectedOptioncomponent - Add new
MenuSection,MenuHeading, andMenuSeparatorcomponents - Add new simplified
data-*attributes as an alternative to the existingdata-headlessui-state="..."attribute - Add
autoFocusprop 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-autofocusin the dialog)
Fixed
- Don't call
<Dialog>'sonClosetwice on mobile devices (#2690) - Lazily resolve default containers in
<Dialog>(#2697) - Ensure hidden
Tab.Panelcomponents are hidden from the accessibility tree (#2708) - Add support for
role="alertdialog"to<Dialog>component (#2709) - Ensure blurring the
Combobox.Inputcomponent closes theCombobox(#2712) - Allow changes to the
classNameprop 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
Listboxcomponent 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 />inPopoverGroupcomponent only (#2634) - Disable smooth scrolling when opening/closing
Dialogcomponents on iOS (#2635) - Don't assume
<Tab />components are available when setting the next index (#2642) - Improve SSR of the
Disclosurecomponent (#2645) - Fix incorrectly focused
ComboboxInputcomponent on page load (#2654) - Improve resetting values when using the
nullableprop on theComboboxcomponent (#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.Groupcomponent only (#2634) - Disable smooth scrolling when opening/closing
Dialogcomponents on iOS (#2635) - Don't assume
<Tab />components are available when setting the next index (#2642) - Fix incorrectly focused
Combobox.Inputcomponent on page load (#2654) - Ensure
appearworks using theTransitioncomponent (even when used with SSR) (#2646) - Improve resetting values when using the
nullableprop on theComboboxcomponent (#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.Inputvalue (#2568) - Improve "outside click" behaviour in combination with 3rd party libraries (#2572)
- Improve performance of
Comboboxcomponent (#2574) - Ensure IME works on Android devices (#2580)
- Calculate
aria-expandedpurely based on the open/closed state (#2610) - Submit form on
Entereven 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.Inputvalue (#2568) - Improve "outside click" behaviour in combination with 3rd party libraries (#2572)
- Ensure IME works on Android devices (#2580)
- Calculate
aria-expandedpurely based on the open/closed state (#2610) - Submit form on
Entereven if no submit-like button was found (#2613)
@headlessui/[email protected]
Fixed
- Fix memory leak in
Popovercomponent (#2430) - Ensure
FocusTrapis only active when the givenenabledvalue istrue(#2456) - Ensure the exposed
activeIndexis up to date for theComboboxcomponent (#2463) - Improve control over
MenuandListboxoptions while searching (#2471) - Consider clicks inside iframes to be "outside" (#2485)
- Ensure moving focus within a
Portalcomponent, does not close thePopovercomponent (#2492)
Changed
- Move
typescondition to the front (#2469)
@headlessui/[email protected]
Added
- [internal] add demo mode to
MenuandPopovercomponents (#2448)
Fixed
- Ensure
FocusTrapis only active when the givenenabledvalue istrue(#2456) - Stop
<Transition appear>from overwriting classes on re-render (#2457) - Improve control over
MenuandListboxoptions while searching (#2471) - Consider clicks inside iframes to be "outside" (#2485)
- Ensure moving focus within a
Portalcomponent, does not close thePopovercomponent (#2492)
Changed
- Move
typescondition to the front (#2469)
@headlessui/[email protected]
Fixed
- Fix focus styles showing up when using the mouse (#2347)
- Disable
ComboboxInputwhen itsComboboxis disabled (#2375) - Add
FocusTrapevent listeners once document has loaded (#2389) - Don't scroll-lock
<Dialog>when wrapping transition isn't showing (#2422) - Ensure DOM
refis properly handled in theRadioGroupcomponent (#2424)
Added
- Add
formprop to form-like components such asRadioGroup,Switch,Listbox, andCombobox(#2356)
@headlessui/[email protected]
Fixed
- Add ESM and
typespaths topackage.jsonfor Tailwind CSS plugin (#2382)