Repository navigation
Releases
[email protected]
Minor Changes
- feat(Dialog/AlertDialog): add
preventBodyPointerEventstoContent. Set it tofalseto let a rendered overlay block the page instead of settingpointer-events: noneon<body>, which restyles every element on large pages (#2282)
Patch Changes
-
fix(Combobox): set
aria-controlsonCombobox.Inputto the listbox while it is mounted (#2293) -
fix(Floating, DismissibleLayer): don't read
$derivedoptions from observers and document listeners while a parent's outro holds the layer inert (#2295) -
fix(LinkPreview): don't close a preview opened by focus when the pointer leaves the trigger (#2284)
-
fix(Select, Combobox): select once when a touch press that ended without a click came before the tap (#2296)
-
fix(Select, Combobox): scroll only the viewport, not the page, when highlighting an item (#2298)
-
fix(TimeField, DateField): use the
ZonedDateTimevalue's time zone, not the local one, when computing AM/PM (#2290) -
fix(Tooltip): don't close a tooltip opened by focus when the pointer leaves the trigger (#2284)
-
perf(Tooltip): register and unregister tether triggers in O(1) instead of copying the registry on every write, so mounting many triggers on one tether is no longer quadratic (#2282)
[email protected]
Patch Changes
- chore: update
svelte-toolbeltandtabbableto their latest patch versions (#2279)
[email protected]
Patch Changes
-
fix:
hideWhenDetachedno longer hides content whencollisionPaddingoverlaps the trigger's scroll container but the trigger is still visible in the viewport (#2278) -
fix: render (or start exiting) content when
openchanges in the same flush the component mounts in (#2274) -
fix(Tooltip): don't read trigger props when the trigger's ref detaches during teardown (#2273)
-
fix: observe element resizes with the element's own window's
ResizeObserver, so components rendered into another window (an iframe or Document Picture-in-Picture) measure correctly, and don't measure mid-render when a second subscriber attaches to an already-observed element (#2276) -
perf(ScrollArea): measure
type="auto"overflow inside the resize observer report instead of the next animation frame, avoiding a forced synchronous layout (#2272) -
fix(Slider): don't recompute thumb and tick positions on resize when
trackPaddingis set orthumbPositioningis"exact", since those paths never measure the DOM (#2275)
[email protected]
Patch Changes
-
fix:
hideWhenDetachednow respects the anchor's scroll containers when nocollisionBoundaryis set (#2207) -
fix(Menu): don't focus the content when the pointer leaves an item while the menu is closing, so focus moved elsewhere after a selection stays there (#2271)
-
fix(PinInput): run
onCompleteuntracked so a callback that reads and writes state no longer loops witheffect_update_depth_exceeded(#2267) -
fix(Slider): measure the thumb scale once per update instead of once per step, and compute ticks only when a snippet reads them, so sliders with many steps stay fast (#1623) (#2265)
-
Prevent selecting options when an open Select becomes disabled. Re-enabling the Select restores option interaction. (#2266)
-
fix: preserve composed pointer paths for dismissible overlays in open shadow roots (#2256)
[email protected]
Patch Changes
-
fix(Calendar/RangeCalendar): keep the weekday when
ArrowUp/ArrowDowncrosses the month edge with disabled days (#2249) -
fix(Command): scroll the first item of a group into view along with its heading, so arrowing down onto it no longer leaves the item hidden below the list (#2252)
-
fix(DropdownMenu): close on a click outside when the trigger's
idisn't a valid CSS identifier, such as"1"(#2259) -
Preserve user focus and autofocus callbacks when an already mounted focus scope (#2264)
receives the same container reference again. -
fix(RadioGroup): focus the item on an invalid form submission when its
idisn't a valid CSS identifier (#2259) -
fix(ScrollArea): cancel the pending scroll-end timers and stop the thumb's scroll loop on unmount, so
type="scroll"no longer keeps detached instances alive after unmount (#2261) -
fix(Menu): keep positioning props such as
alignandsideoff the sub content element, wherealignis the HTML attribute that aligns text (#2248) -
fix(Menu): only extend the submenu safe area while the pointer moves closer to the submenu. A sibling sub trigger now takes over 100ms after the pointer stops making progress, instead of 500ms after its last move. (#2192)
-
fix(Tooltip): stay open when focusing the trigger scrolls it into view, while later scrolling still closes it (#2263)
-
fix(Tooltip): don't open on the focus that follows a tap, which left the tooltip over a menu opened from the same trigger (#2245)
[email protected]
Patch Changes
-
fix(Combobox): let
Home/Endmove the text cursor inCombobox.Inputinstead of highlighting the first/last item (#2241) -
fix(Select): space to toggle items (#2073)
-
Fix Date Field rejecting and rendering day 31 before a month is selected (#2187)
-
fix(Floating): apply the content's z-index to the floating wrapper when force-mounted content opens (#1961)
-
fix(Select, Combobox): select the pressed item when the list scrolls under a still pointer before release (#2232)
-
fix(Combobox): open the trigger on a click that no pointer press precedes (
detail: 0), such aselement.click()or a VoiceOver activation in Safari (#2186) -
fix: silence
state_referenced_locallycompiler warnings emitted in consumer builds by wrapping intentional initialization-time prop reads inuntrack(#2179)
[email protected]
Patch Changes
-
fix(Calendar, RangeCalendar): keep a day tabbable when the placeholder is disabled after mount or after Prev/Next. Also applies to
DatePickerandDateRangePicker. (#2235) -
fix(Command): avoid remounting all items on the first search character when
shouldFilterisfalse(#2240) -
fix(Floating): avoid an invalid
z-index: undefinedwrapper style that logs warnings in Firefox (#2076) -
fix(DropdownMenu, ContextMenu, Menubar): select the pressed item when the content scrolls under a still pointer before release (sibling of #2231) (#2237)
-
chore: update
@floating-ui/core,@floating-ui/dom,esm-env, andtabbableto their latest minor versions (#2234) -
fix(RangeCalendar): preserve the weekday when moving focus with Arrow Up/Down past disabled dates (#2224) (#2236)
[email protected]
Minor Changes
- feat(RadioGroup): set
autocomplete="off"on the hidden input by default to discourage browser autofill, and add anautocompleteprop toRadioGroup.Rootto override it (#2198)
Patch Changes
-
fix(Calendar): fall back to the default
placeholderwhen spread props are reassigned andplaceholderis not bound, preventingCannot read properties of undefined (reading 'set'). Also applies toRangeCalendar,DatePicker,DateRangePicker,DateRangeField,TimeField, andTimeRangeField. (#2226) -
fix(Select): open the trigger on a click that no pointer press precedes (
detail: 0), such aselement.click()or a VoiceOver activation in Safari (#2227) -
fix(Calendar/RangeCalendar): prevent weekday headers, heading, and cell labels from shifting by a day when using a
ZonedDateTimein a time zone ahead of the local one (#2215) -
fix(Collapsible/Accordion): prevent content mounted open from playing its open animation (#2209)
-
fix(Command): skip deferred root work after
Command.Rootis destroyed (#2210) -
fix(Command): scroll the first item into view when items aren't grouped (#2003)
-
fix(DatePicker): respect
preventDefault()inContent'sonOpenAutoFocusso the calendar day is not auto-focused (also applies toDateRangePicker) (#2219) -
fix: prevent content from flashing visible for a frame after its exit animation when Svelte async mode is enabled (#2193)
-
fix(Select/Combobox/DropdownMenu): don't open the trigger when it's disabled by an ancestor
<fieldset disabled>(#2214) -
fix(body-scroll-lock): restore body
pointer-eventsas soon as the last lock is released so clicks right after a layer closes aren't lost (#2221) -
fix(FocusScope): keep focus on elements inside an open shadow root nested in the scope (e.g. a web component's
<input>) instead of treating it as escaping the trap (#2223) -
fix(FocusScope): prevent page scroll when auto-focusing on open, trapping focus, and restoring focus on close (#2217)
-
fix(LinkPreview): always remove the document
pointeruplistener registered while open. When the content node wasn't attached yet, the open watcher returned early before its cleanup, so the listener was never unsubscribed and kept firing after the preview closed or unmounted. (#2194) -
fix(NavigationMenu): only register a
NavigationMenu.Content's dismiss/escape layers while it is open so closedforceMountcontent no longer closes the open item on inside clicks or steals escape focus (#2218) -
fix(Command): item selection logic (#2074)
-
fix: call
onOpenChangeCompletewithtrueafter content opens and its animations finish, not only on close (#2199) -
fix(HiddenInput): keep hidden form inputs in sync with component state after a form reset. A native form reset now restores the current value instead of clearing the input, so setting a value right after
form.reset()(e.g. SvelteKituse:enhance'supdate()) is no longer lost. Applies toRadioGroup,Select,Combobox,Checkbox,Switch,RatingGroup, and the date/time fields (#1942) (#2212) -
fix(DateField): reset the segments when
valueis cleared externally after a date was typed in (#2196) -
fix(Select/Combobox): highlight the selected item on open when its value is an empty string, and allow selecting it with Enter in
Combobox(#2213) -
fix(Tabs, Accordion, ToggleGroup, RadioGroup, Toolbar, Menubar): ignore the items and triggers of a nested root of the same kind during keyboard navigation, so arrow keys,
Home,Endand wrapping stay within the outer group (#2190) -
Resume a paused focus scope when it registers again, so a menu whose trigger sits in a tooltip moves focus into its content when opened. (#2201)
-
fix(DismissibleLayer): close an open layer when a second outside
pointerdownlands within its 10ms dismissal debounce. The second event replaced the pending one and was judged against the newly opened layer, so rapidly right clicking acrossContextMenutriggers left earlier menus open. (#2229) -
Set
aria-selected="false"on unselectedSelect.ItemandCombobox.Itemoptions so every option exposes its selection state per the APG listbox pattern. (#2188) -
fix(Select): give
Select.Triggerthecomboboxrole and pointaria-controlsat the mounted listbox (#2216) -
fix(Select, Combobox): keep aligning the highlighted item while the content settles after positioning. Chrome that mounts once the content is placed (scroll buttons in the flex flow, a header, a footer) shrinks the viewport under the open-time alignment and left a far-down selection below the fold; the content now realigns on every viewport resize until the user scrolls, which also retires the scroll down button's own mount-time realign. (#2157)
-
fix(Checkbox): pass the
formprop to the button again and submit the linked form whenEnteris pressed withtype="submit"(#2204) -
fix(Slider): throw a descriptive error for non-finite
min/max/step(or astepof0) instead of hanging the browser (#2211) -
fix: skip deferred animation-complete callbacks when the owning component is destroyed before they run (#2210)
-
fix(Select, Combobox): stop the scroll button auto scroll when the content closes while the button is hovered (#2197)
-
fix(AlertDialog): prevent delayed open autofocus from focusing replaced content (#2220)
-
fix(DateField): keep the day period when typing or deleting the hour in 12-hour mode (#2228)
-
fix(Tooltip): close when any scrolling ancestor of the trigger scrolls (#2206)
[email protected]
Patch Changes
-
fix(Select): ensure
Select.Valuelabels persist after the select is closed (#2066) -
fix(DismissibleLayer): dismiss on a touch tap whose
clickfollows itspointerdownwithin a few milliseconds. The click listener was armed only after a 10ms debounce, so on WebKit (mobile Safari) a quick tap on a sibling trigger landed before it and left the open layer open beside the new one. (#2182) -
fix(body-scroll-lock): restore only modified body styles to preserve concurrent changes (#2175)
-
Fix
DateRangePickerandDateRangeFieldnot reformatting their segments when thelocaleprop changes after mount. (#2150) -
fix(FocusScope): trap and restore focus inside a Shadow Root. Focus reads now follow
shadowRoot.activeElementand thefocusintarget comes fromcomposedPath(), so Tab wraps within the scope and focus returns to a trigger inside the root on close. (#2180)
[email protected]
Patch Changes
-
fix(PopperLayer): destructure the internal
forceMountprop out ofrestPropsso it stops leaking onto the rendered content element as an invalidforcemountattribute (Popover, Select, Combobox, DropdownMenu, ContextMenu, Menubar, Tooltip, LinkPreview) (#2176) -
fix(DismissibleLayer): dismiss on a touch tap even when the tapped element stops click propagation. Touch outside-dismissal waits for the tap's
clickon the document, and a bubbling listener never hears a click whose target handler callsstopPropagation(), so the layer stayed open behind elements that own their clicks. (#2155)