Skip to content

Commit 520b4e0

Browse files
committed
chore: bump zag-js
1 parent ea15c13 commit 520b4e0

File tree

10 files changed

+659
-614
lines changed

10 files changed

+659
-614
lines changed

.changeset/sync-zag-1-40.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
'@ark-ui/react': patch
3+
'@ark-ui/solid': patch
4+
'@ark-ui/svelte': patch
5+
'@ark-ui/vue': patch
6+
---
7+
8+
### Added
9+
10+
- **Popover**: Add `finalFocusEl` and `restoreFocus` props to control focus behavior when the popover closes.
11+
`finalFocusEl` lets you specify an element to receive focus instead of the trigger, and `restoreFocus` (default `true`)
12+
controls whether focus returns to the trigger at all.
13+
14+
```jsx
15+
<Popover.Root finalFocusEl={() => myInputRef} restoreFocus={false}>
16+
...
17+
</Popover.Root>
18+
```
19+
20+
### Fixed
21+
22+
- **Color Picker**: Fix color value to respect the specified `format` when setting values via props or `setValue`.
23+
Previously, the internal color object could retain a mismatched format (e.g., RGB when `format` is `hsla`), causing
24+
inconsistent `value` objects in `onValueChange` callbacks.
25+
26+
- **Date Input**: Fix min/max constraints resetting other segments mid-keystroke. Validation now defers until the segment
27+
is fully typed or on blur.
28+
29+
- **Date Picker**: Fix `onValueChange` not firing when only time segments change in `CalendarDateTime` or
30+
`ZonedDateTime` values.
31+
32+
- **Navigation Menu**: Remove aggressive and redundant default `aria-label`.

0 commit comments

Comments
 (0)