Skip to content

Commit 7adfc59

Browse files
rodikjavivelasco
authored andcommitted
nextState in componentWillUpdate of Menu.js fix
1 parent ef0fe11 commit 7adfc59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/menu/Menu.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ class Menu extends React.Component {
7070
return true;
7171
}
7272

73-
componentWillUpdate (prevState, nextState) {
74-
if (!prevState.active && nextState.active) {
73+
componentWillUpdate (nextProps, nextState) {
74+
if (!this.state.active && nextState.active) {
7575
events.addEventsToDocument({click: this.handleDocumentClick});
7676
}
7777
}

0 commit comments

Comments
 (0)