Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit a9da270

Browse files
committed
fix: fix app-layout onOpen callback
1 parent b7de93c commit a9da270

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ui/xconsole-rc-app-layout/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/xconsole-rc-app-layout",
3-
"version": "2.4.13",
3+
"version": "2.4.14",
44
"main": "lib/index.js",
55
"module": "es/index.js",
66
"license": "MIT",

packages/ui/xconsole-rc-app-layout/src/Nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const Nav: React.FC<IMenuProps> = (props: IMenuProps) => {
108108
items={items || getMenuItems()}
109109
openKeys={openKeys}
110110
onOpen={(key, extra) => {
111-
onOpen(key, extra);
111+
if (typeof onOpen === 'function') onOpen(key, extra);
112112
onOpenKeys(key);
113113
}}
114114
onItemClick={onItemClick}

0 commit comments

Comments
 (0)