@ariakit/react@0.3.3
Patch Changes
-
#2820Added missingaria-haspopupattribute toDialogDisclosureandPopoverDisclosure. -
#2858Fixed thesetValueOnMovestate on the Select module not syncing between multiple stores.The following now works as expected:
const store1 = useSelectStore(); const store2 = useSelectStore({ store: store1, setValueOnMove: true }); store1.useState("setValueOnMove") === store2.useState("setValueOnMove"); // true
-
#2862Elements inside Dialog and derived components are now properly disabled when the dialog is animating out. -
#2862Fixed a bug that occurred when rendering nested Dialog elements with a third-party dialog interspersed.Previously, Ariakit didn't recognize the third-party dialog as a nested dialog when the lowest dialog opened.
-
#2862ThehideOnEscapeprop is now triggered during the capture phase.Essentially, this means that you can now prevent the propagation of the Escape keydown event to other elements in the DOM when it's used to close an Ariakit Dialog:
<Dialog hideOnEscape={(event) => { event.stopPropagation(); return true; }} />
-
#2862Fixed an issue where the Dialog component would automatically hide when parent dialogs closed.You can now render nested dialogs in the React tree and keep them open independently, provided they're not unmounted.
-
#2862Fixed the Focusable and its derived components that were incorrectly calling theonFocusVisiblecallback prop when the element had lost focus.This didn't align with the behavior of the
data-focus-visibleattribute. The behavior now mirrors the attribute, which will only be omitted from the element ifevent.preventDefault()is invoked from within theonFocusVisiblecallback. -
#2862Themodalprop is now automatically disabled on nestedMenucomponents. -
#2869Fixed uncaughtmsg.startsWitherror. -
Improved JSDocs.
-
Updated dependencies:
@ariakit/react-core@0.3.3.