Skip to content

Commit

Permalink
fix(layout): fix sider menu Drawer onCollapse no work error
Browse files Browse the repository at this point in the history
close #6678
  • Loading branch information
chenshuai2144 committed Mar 8, 2023
1 parent c325b23 commit 7d638f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/layout/src/components/SiderMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ const SiderMenuWrapper: React.FC<SiderMenuProps & PrivateSiderMenuProps> = (prop
height: '100vh',
...style,
}}
onClose={() => {
onCollapse?.(true);
}}
maskClosable
closable={false}
getContainer={getContainer}
Expand Down

0 comments on commit 7d638f4

Please sign in to comment.