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