Skip to content

Commit 25b5cea

Browse files
committed
fix onIconClick
1 parent 4b85d63 commit 25b5cea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-drawer-menu",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"description": "drawer menu animation component for react",
55
"keywords": [
66
"react",

src/Drawer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Drawer extends React.PureComponent {
131131
}
132132

133133
onIconTouchEnd = (e) => {
134-
this.props.onSwitch(e);
134+
this.props.onIconClick(e);
135135
this.onTouchEnd(e);
136136
}
137137

0 commit comments

Comments
 (0)