Skip to content

Commit 57e580e

Browse files
committed
fix this.parent is null
1 parent a295827 commit 57e580e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-drawer-menu",
3-
"version": "0.5.6",
3+
"version": "0.5.7",
44
"description": "drawer menu animation component for react",
55
"keywords": [
66
"react",

src/Drawer.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ class Drawer extends React.PureComponent {
5353
};
5454
}
5555
componentDidMount() {
56+
this.getParentAndLevelDom();
5657
if (this.props.parent) {
5758
this.container = this.defaultGetContainer();
5859
}
59-
this.getParentAndLevelDom();
6060
this.forceUpdate();
6161
}
6262

0 commit comments

Comments
 (0)