Packages

@base-ui/react

1.9.0 · 9 Oct 2026MIT32.3M / weekRepositoryHomepagenpmAtom feed

Your version

1.9.0

Latest9 Oct 2026Where it was published

In short

1 breaking5 new4 faster46 fixed2 internal

  • Breaking

    Decouple automatic unmounting from actionsRef. Call eventDetails.preventUnmountOnClose() in onOpenChange to opt out of automatic unmounting

Release note

General changes

  • Export CssVariables and DataAttributes types

  • Fix stale focused field state

  • Fix animation waits retaining detached elements

  • Keep item registration in sync when items change under Strict Mode

  • Avoid re-rendering inactive triggers on open and close

Accordion

  • Fix <Accordion.Trigger>'s data-value and data-index attributes

  • Apply the native disabled attribute to <Accordion.Trigger> when using native buttons

  • Expand hiddenUntilFound panels synchronously on beforematch

Alert Dialog

  • Don't associate a programmatically opened popup with a trigger that did not open it

Autocomplete

  • Fix autoHighlight for asynchronous results

  • Pass the originating event to onItemHighlighted. Pointer events may be MouseEvent or PointerEvent; typing reports the reason none

  • Decouple automatic unmounting from actionsRef. Call eventDetails.preventUnmountOnClose() in onOpenChange to opt out of automatic unmounting

Checkbox

  • Prefer aria-label over associated labels

Collapsible

  • Apply the native disabled attribute to <Collapsible.Trigger> when using native buttons

  • Finish closing when the render function removes the panel

  • Restore animations when a removed panel reopens

  • Expand hiddenUntilFound panels synchronously on beforematch

Combobox

  • Fix stale chip focus after returning to the input

  • Fix autoHighlight for asynchronous results

  • Decouple automatic unmounting from actionsRef. Call eventDetails.preventUnmountOnClose() in onOpenChange to opt out of automatic unmounting

  • Fix label focus in Shadow DOM

  • Pass the originating event to onItemHighlighted. Pointer events may be MouseEvent or PointerEvent; typing reports the reason none

  • Reset typeahead state when closing without moving focus

  • Accept readonly arrays for multiple values

  • Share item indicator implementation

  • Improve mount performance of large lists

  • Combine item store subscriptions

Dialog

  • Keep parent open when closing a nested dialog in a closed shadow root

  • Don't associate a programmatically opened popup with a trigger that did not open it

Drawer

  • Preserve swipe release velocity after a trailing stationary pointer event

  • Fix swipe release velocity on 120 Hz input

  • Remove excess virtual keyboard scroll space

  • Avoid excess keyboard spacing in Chrome on iOS

  • Fix native focus scrolling on iOS 27

  • Handle CloseWatcher close requests from the cancel event

  • Add x and y options to data-base-ui-swipe-ignore

  • Scroll instead of swiping when a drag starts on an SVG

  • Avoid touch event overhead while the drawer is closed

  • Preserve item taps when dismissing the virtual keyboard

  • Avoid retaining unmounted drawers in <Drawer.Provider>

  • Don't associate a programmatically opened popup with a trigger that did not open it

Field

  • Avoid warnings when an uncontrolled <Field.Control>'s defaultValue changes

  • Fix label focus in Shadow DOM

Menu

  • Add menu filtering behavior with <Menu.FilterProvider>, <Menu.Input>, and the onItemHighlighted callback (preview) (#5527, #5838, #5840, #5868)

  • Fix nested menus without a root trigger

  • Fix event listener cleanup in <Menu.Trigger>

  • Release parent menu subscriptions when a submenu unmounts

  • Pass the native event to onOpenChange when an item press closes the menu

  • Close submenu when focus returns through its guard

  • Toggle submenus on repeated trigger activation

  • Reset typeahead state when closing without moving focus

  • Fix focus guard loop when the trigger is the only tabbable element

  • Fix hover-out animations when switching between detached triggers

  • Don't start a viewport transition when the trigger remounts while closed

  • Keep transition state consistent when reopening a retained popup

  • Improve mount performance of large lists

Number Field

  • Fire <NumberField.ScrubArea>'s onClick once per click

OTP Field

  • Fix Safari IME composition over-filling slots

Popover

  • Fix focus guard loop when the trigger is the only tabbable element

  • Fix hover-out animations when switching between detached triggers

  • Don't start a viewport transition when the trigger remounts while closed

  • Keep transition state consistent when reopening a retained popup

Preview Card

  • Don't start a viewport transition when the trigger remounts while closed

Radio Group

  • Prefer aria-label over associated labels

  • Prevent ignored arrow keys from selecting on refocus

  • Correct inputRef forwarding and cleanup

Scroll Area

  • Remove presentational viewport role

Select

  • Decouple automatic unmounting from actionsRef. Call eventDetails.preventUnmountOnClose() in onOpenChange to opt out of automatic unmounting

  • Fix label focus in Shadow DOM

  • Reset typeahead state when closing without moving focus

  • Synchronize root props through the store

  • Share item indicator implementation

  • Improve mount performance of large lists

  • Combine item store subscriptions

  • Accept readonly arrays for multiple values

Slider

  • Fix label focus in Shadow DOM

  • End drags on touchcancel and pointercancel

  • Fix touch track taps not firing onValueCommitted

  • Preserve single-element array values on pointer interaction

Switch

  • Prefer aria-label over associated labels

Tabs

  • Fix selecting tabs with function values

Toast

  • Keep timers paused during overlapping interactions

Tooltip

  • Don't start a viewport transition when the trigger remounts while closed

All contributors of this release in alphabetical order: @aarongarciah, @atomiks, @brijeshb42, @citrus, @cpruijsen, @flaviendelangle, @jjenzz, @LukasTy, @lyzno1, @mdm317, @michaldudak, @MonstraG, @padd60, @sai6855, @santiago-ramos-02, @sarthakmalik0810, @superhooman, @tjdsksro90

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.