Skip to content

Releases

[email protected]

Choose a tag to compare

@github-actions github-actions released this 11 Nov 03:31
d5e025f

Minor Changes

  • feat(Dialog/AlertDialog): add preventBodyPointerEvents to Content. Set it to false to let a rendered overlay block the page instead of setting pointer-events: none on <body>, which restyles every element on large pages (#2282)

Patch Changes

  • fix(Combobox): set aria-controls on Combobox.Input to the listbox while it is mounted (#2293)

  • fix(Floating, DismissibleLayer): don't read $derived options 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 ZonedDateTime value'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]

Choose a tag to compare

@github-actions github-actions released this 05 Nov 01:16
d093bd0

Patch Changes

  • chore: update svelte-toolbelt and tabbable to their latest patch versions (#2279)

[email protected]

Choose a tag to compare

@github-actions github-actions released this 04 Nov 19:37
2c7fd41

Patch Changes

  • fix: hideWhenDetached no longer hides content when collisionPadding overlaps the trigger's scroll container but the trigger is still visible in the viewport (#2278)

  • fix: render (or start exiting) content when open changes 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 trackPadding is set or thumbPositioning is "exact", since those paths never measure the DOM (#2275)

[email protected]

Choose a tag to compare

@github-actions github-actions released this 03 Nov 13:55
40d40a0

Patch Changes

  • fix: hideWhenDetached now respects the anchor's scroll containers when no collisionBoundary is 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 onComplete untracked so a callback that reads and writes state no longer loops with effect_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]

Choose a tag to compare

@github-actions github-actions released this 01 Nov 18:34
314c243

Patch Changes

  • fix(Calendar/RangeCalendar): keep the weekday when ArrowUp/ArrowDown crosses 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 id isn'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 id isn'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 align and side off the sub content element, where align is 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]

Choose a tag to compare

@github-actions github-actions released this 23 Oct 03:27
33186c8

Patch Changes

  • fix(Combobox): let Home/End move the text cursor in Combobox.Input instead 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 as element.click() or a VoiceOver activation in Safari (#2186)

  • fix: silence state_referenced_locally compiler warnings emitted in consumer builds by wrapping intentional initialization-time prop reads in untrack (#2179)

[email protected]

Choose a tag to compare

@github-actions github-actions released this 22 Oct 18:57
4a948f1

Patch Changes

  • fix(Calendar, RangeCalendar): keep a day tabbable when the placeholder is disabled after mount or after Prev/Next. Also applies to DatePicker and DateRangePicker. (#2235)

  • fix(Command): avoid remounting all items on the first search character when shouldFilter is false (#2240)

  • fix(Floating): avoid an invalid z-index: undefined wrapper 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, and tabbable to their latest minor versions (#2234)

  • fix(RangeCalendar): preserve the weekday when moving focus with Arrow Up/Down past disabled dates (#2224) (#2236)

[email protected]

Choose a tag to compare

@github-actions github-actions released this 20 Oct 18:09
cd055a1

Minor Changes

  • feat(RadioGroup): set autocomplete="off" on the hidden input by default to discourage browser autofill, and add an autocomplete prop to RadioGroup.Root to override it (#2198)

Patch Changes

  • fix(Calendar): fall back to the default placeholder when spread props are reassigned and placeholder is not bound, preventing Cannot read properties of undefined (reading 'set'). Also applies to RangeCalendar, DatePicker, DateRangePicker, DateRangeField, TimeField, and TimeRangeField. (#2226)

  • fix(Select): open the trigger on a click that no pointer press precedes (detail: 0), such as element.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 ZonedDateTime in 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.Root is destroyed (#2210)

  • fix(Command): scroll the first item into view when items aren't grouped (#2003)

  • fix(DatePicker): respect preventDefault() in Content's onOpenAutoFocus so the calendar day is not auto-focused (also applies to DateRangePicker) (#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-events as 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 pointerup listener 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 closed forceMount content no longer closes the open item on inside clicks or steals escape focus (#2218)

  • fix(Command): item selection logic (#2074)

  • fix: call onOpenChangeComplete with true after 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. SvelteKit use:enhance's update()) is no longer lost. Applies to RadioGroup, Select, Combobox, Checkbox, Switch, RatingGroup, and the date/time fields (#1942) (#2212)

  • fix(DateField): reset the segments when value is 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, End and 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 pointerdown lands within its 10ms dismissal debounce. The second event replaced the pending one and was judged against the newly opened layer, so rapidly right clicking across ContextMenu triggers left earlier menus open. (#2229)

  • Set aria-selected="false" on unselected Select.Item and Combobox.Item options so every option exposes its selection state per the APG listbox pattern. (#2188)

  • fix(Select): give Select.Trigger the combobox role and point aria-controls at 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 form prop to the button again and submit the linked form when Enter is pressed with type="submit" (#2204)

  • fix(Slider): throw a descriptive error for non-finite min/max/step (or a step of 0) 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]

Choose a tag to compare

@github-actions github-actions released this 03 Oct 05:57
fd10616

Patch Changes

  • fix(Select): ensure Select.Value labels persist after the select is closed (#2066)

  • fix(DismissibleLayer): dismiss on a touch tap whose click follows its pointerdown within 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 DateRangePicker and DateRangeField not reformatting their segments when the locale prop changes after mount. (#2150)

  • fix(FocusScope): trap and restore focus inside a Shadow Root. Focus reads now follow shadowRoot.activeElement and the focusin target comes from composedPath(), so Tab wraps within the scope and focus returns to a trigger inside the root on close. (#2180)

[email protected]

Choose a tag to compare

@github-actions github-actions released this 01 Oct 02:29
cdf337d

Patch Changes

  • fix(PopperLayer): destructure the internal forceMount prop out of restProps so it stops leaking onto the rendered content element as an invalid forcemount attribute (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 click on the document, and a bubbling listener never hears a click whose target handler calls stopPropagation(), so the layer stayed open behind elements that own their clicks. (#2155)