diff --git a/.changeset/silent-beans-try.md b/.changeset/silent-beans-try.md new file mode 100644 index 000000000..389f54a0b --- /dev/null +++ b/.changeset/silent-beans-try.md @@ -0,0 +1,5 @@ +--- +"@easypost/easy-ui": patch +--- + +fix(Menu): return focus to trigger after closing menu diff --git a/easy-ui-react/src/Menu/MenuOverlay.tsx b/easy-ui-react/src/Menu/MenuOverlay.tsx index 233b2f469..390affe4b 100644 --- a/easy-ui-react/src/Menu/MenuOverlay.tsx +++ b/easy-ui-react/src/Menu/MenuOverlay.tsx @@ -2,7 +2,7 @@ import { CollectionChildren } from "@react-types/shared"; import React, { Key } from "react"; import { DismissButton, - OverlayContainer, + Overlay, Placement, mergeProps, useMenu, @@ -119,7 +119,7 @@ function MenuOverlayContent(props: MenuOverlayProps) { } as React.CSSProperties; return ( - +
(props: MenuOverlayProps) {
-
+ ); }