We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef0fe11 commit 7adfc59Copy full SHA for 7adfc59
components/menu/Menu.jsx
@@ -70,8 +70,8 @@ class Menu extends React.Component {
70
return true;
71
}
72
73
- componentWillUpdate (prevState, nextState) {
74
- if (!prevState.active && nextState.active) {
+ componentWillUpdate (nextProps, nextState) {
+ if (!this.state.active && nextState.active) {
75
events.addEventsToDocument({click: this.handleDocumentClick});
76
77
0 commit comments