Skip to content

@ariakit/react@0.3.3

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Sep 04:29
· 1867 commits to main since this release
0865cf2

Patch Changes

  • #2820 Added missing aria-haspopup attribute to DialogDisclosure and PopoverDisclosure.

  • #2858 Fixed the setValueOnMove state 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
  • #2862 Elements inside Dialog and derived components are now properly disabled when the dialog is animating out.

  • #2862 Fixed 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.

  • #2862 The hideOnEscape prop 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;
      }}
    />
  • #2862 Fixed 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.

  • #2862 Fixed the Focusable and its derived components that were incorrectly calling the onFocusVisible callback prop when the element had lost focus.

    This didn't align with the behavior of the data-focus-visible attribute. The behavior now mirrors the attribute, which will only be omitted from the element if event.preventDefault() is invoked from within the onFocusVisible callback.

  • #2862 The modal prop is now automatically disabled on nested Menu components.

  • #2869 Fixed uncaught msg.startsWith error.

  • Improved JSDocs.

  • Updated dependencies: @ariakit/react-core@0.3.3.