ariakit@2.0.0-next.32
Pre-release
Pre-release
·
4600 commits
to main
since this release
Major Changes
-
The
defaultVisible,visible, andsetVisibleproperties onuseDisclosureStateand derived state hooks have been renamed todefaultOpen,open, andsetOpen, respectively. (#1426, #1521)Before:
const dialog = useDialogState({ defaultVisible, visible, setVisible }); dialog.visible; dialog.setVisible;
After:
const dialog = useDialogState({ defaultOpen, open, setOpen }); dialog.open; dialog.setOpen;
Minor Changes
-
Improved disclosure detection on
Dialog. (#1422) -
Made it easier to programmatically open
Menucomponents usingmenu.show(). (#1573)
Patch Changes
-
Fixed
Dialognot auto-detecting the disclosure when animating. (#1422) -
Fixed cases where an animated
Dialogwouldn't change itsanimatingstate and therefore not move focus. (#1422) -
Fixed behavior when transitioning between sibling
Dialogcomponents. (#1422) -
Fixed initial focus on animated
Select. (#1570) -
Fixed
SelectPopovernot focusing on the base element when there's no selected item. (#1557)