From 2761a3ba5d942551a679fa118e0ed5a37d23f7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Tue, 11 Sep 2018 23:17:21 +0800 Subject: [PATCH] fix #2261 remove onCollapse in Sider --- src/components/SiderMenu/SliderMenu.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/SiderMenu/SliderMenu.js b/src/components/SiderMenu/SliderMenu.js index e457f2f5..785a97ca 100644 --- a/src/components/SiderMenu/SliderMenu.js +++ b/src/components/SiderMenu/SliderMenu.js @@ -87,7 +87,7 @@ export default class SiderMenu extends PureComponent { }; render() { - const { logo, collapsed, onCollapse, fixSiderbar, theme } = this.props; + const { logo, collapsed, fixSiderbar, theme } = this.props; const { openKeys } = this.state; const defaultProps = collapsed ? {} : { openKeys }; @@ -95,14 +95,12 @@ export default class SiderMenu extends PureComponent { [styles.fixSiderbar]: fixSiderbar, [styles.light]: theme === 'light', }); - return (