Patch Changes
-
264fc2fThanks
@segunadebayo! - Fixed issue wherestrategy: "absolute"positioned the panel
outside its boundary. The machine computes viewport coordinates, whichabsoluteresolves against the offset parent
instead. Absolute panels are now placed correctly, and are clipped by a scrolling boundary as expected.const service = useMachine(floatingPanel.machine, { strategy: "absolute", getBoundaryEl: () => boundaryRef.current, })
-
4fada6fThanks
@segunadebayo! - Fixed issue where the panel did not follow its boundary element
when an ancestor scrolled, leaving it visually outside the boundary until it was moved.const service = useMachine(floatingPanel.machine, { getBoundaryEl: () => boundaryRef.current, })
-
cfb5874Thanks
@segunadebayo! - Fixed issue where there was no way to open a dialog without moving
focus.initialFocusElcan now returnfalseto skip moving focus. Returningnulluses the default.- Fixed issue where the popover's
autoFocus={false}was ignored for modal popovers.
const service = useMachine(dialog.machine, { initialFocusEl: () => false, })
-
Updated dependencies [
cfb5874,
a125167,
647e225]:- @zag-js/dom-query@1.45.0
- @zag-js/utils@1.45.0
- @zag-js/core@1.45.0
- @zag-js/anatomy@1.45.0
- @zag-js/types@1.45.0
- @zag-js/rect-utils@1.45.0