Patch Changes
-
#3252
06ddeb3Thanks
@github-actions! - - Fixed issue whereinitialFocusElrejectednull,
despite it being handled at runtime. Ondialoganddrawerit was listed as a prop with a default, which stripped
null | undefinedfrom its public type.- Fixed issue where
Portal'scontainerrejected theRefObject<T | null>that React 19'suseRef<T>(null)
returns.
- Fixed issue where
-
#3304
2859ef6Thanks
@segunadebayo! - ApplytrapFocus,preventScrollandmodalwhile the dialog or
drawer is open, andmodalwhile the popover is open. They were read once on entry, so the only way to change them
was a remount, which is unusable for content that cannot be recreated such as media playback or a running timer.Releasing the focus trap no longer pulls focus back to the trigger. Focus is restored only when the component closes.
trapFocus()forwards deactivate options to make this possible. -
Updated dependencies [
2668edc,
06ddeb3,
2859ef6,
021c599,
2859ef6,
6d57458,
734b5e8,
e8b99d2,
2859ef6,
2859ef6,
2859ef6]:- @zag-js/dom-query@2.0.0-next.2
- @zag-js/focus-trap@2.0.0-next.2
- @zag-js/dismissable@2.0.0-next.2
- @zag-js/core@2.0.0-next.2
- @zag-js/types@2.0.0-next.2
- @zag-js/utils@2.0.0-next.2
- @zag-js/aria-hidden@2.0.0-next.2
- @zag-js/remove-scroll@2.0.0-next.2
- @zag-js/anatomy@2.0.0-next.2