perf: multiple menu

This commit is contained in:
archer
2025-06-03 22:53:42 +08:00
parent c1f8d5b032
commit 98b00ae86d
7 changed files with 103 additions and 117 deletions

View File

@@ -43,11 +43,11 @@ const MyPopover = ({
initialFocusRef={firstFieldRef}
onOpen={() => {
onOpen();
onOpenFunc && onOpenFunc();
onOpenFunc?.();
}}
onClose={() => {
onClose();
onCloseFunc && onCloseFunc();
onCloseFunc?.();
}}
placement={placement}
offset={offset}