Skip to content

Releases: tailwindlabs/headlessui

@headlessui/react@v2.1.3

23 Aug 13:51
Compare
Choose a tag to compare

Fixed

  • Ensure Transition component state doesn't change when it becomes hidden (#3372)
  • Fix closing components using the transition prop, and after scrolling the page (#3407)
  • Ensure all client components are marked correctly to avoid a crash with React 19 and Turbopack (#3429)

@headlessui/react@v2.1.2

05 Jul 16:18
a36380f
Compare
Choose a tag to compare

Fixed

  • Fix prematurely added anchoring styles on ListboxOptions (#3337)
  • Ensure unmount on Dialog works in combination with the transition prop on DialogBackdrop and DialogPanel components (#3352)
  • Fix crash in Combobox component when in virtual mode when options are empty (#3356)
  • Fix hanging tests when using anchor prop (#3357)
  • Fix transition and focus prop combination for PopoverPanel 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 for Combobox component with immediate prop enabled (#3366)

@headlessui/react@v2.1.1

26 Jun 13:11
abd86fc
Compare
Choose a tag to compare

Fixed

  • Fix issues spreading omitted props onto components (#3313)
  • Fix initial anchor="selection" positioning (#3324)
  • Fix render prop in ComboboxOptions to use any instead of unknown (#3327)
  • Fix incorrect Transition boundary for Dialog component (#3331)

@headlessui/react@v2.1.0

21 Jun 14:18
d60ed6a
Compare
Choose a tag to compare

Headless UI v2.1

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 replace PopoverOverlay (#3308)

Fixed

  • Keep Combobox open when clicking scrollbar in ComboboxOptions (#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 on ComboboxOptions, ListboxOptions, MenuItems, and PopoverPanel components (#3250)
  • Prevent focus on Checkbox when it is disabled (#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 and TransitionChild components (#3303)

Changed

  • Allow using the Tab and Shift+Tab keys when the Listbox component is open (#3284)

@headlessui/tailwindcss@v0.2.1

29 May 14:19
922c56e
Compare
Choose a tag to compare

Fixed

  • Improve CJS types (#2880)
  • Improve ESM types (#3051)

@headlessui/react@v2.0.4

24 May 22:32
7be23e5
Compare
Choose a tag to compare

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 the Dialog component (#3218)
  • Fix crash when toggling between virtual and non-virtual mode in Combobox component (#3236)
  • Ensure tabbing to a portalled PopoverPanel component moves focus inside (without using PortalGroup) (#3239)
  • Only handle form reset when defaultValue is used (#3240)

Deprecated

  • Mark SwitchGroup as deprecated, prefer Field instead (#3232)

Changed

  • Use native fieldset instead of div by default for Fieldset component (#3237)

@headlessui/vue@v1.7.22

08 May 10:55
7004a25
Compare
Choose a tag to compare

Fixed

  • Don’t cancel touchmove on input elements inside a dialog (#3166)
  • Ensure clicking a ComboboxOption after filtering the options, correctly triggers a change (#3180)

@headlessui/react@v2.0.3

07 May 18:17
Compare
Choose a tag to compare

Fixed

  • Make sure disabling demo mode on Combobox works (#3182)

@headlessui/react@v2.0.2

07 May 17:20
48cf712
Compare
Choose a tag to compare

Fixed

  • Improve performance of internal useInertOthers hook (#3181)

@headlessui/react@v2.0.1

06 May 19:10
Compare
Choose a tag to compare

Fixed

  • Remove accidental deprecation comments on DialogPanel and DialogTitle (#3176)