Skip to content

Commit

Permalink
revert breaking change on navbar for react < 16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
John Benavides committed Apr 27, 2018
1 parent 5818ee0 commit 6416782
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/navbar/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export default class Navbar extends React.PureComponent {
}
}

// TODO: Remove this on future releases
componentWillReceiveProps(nextProps) {
Navbar.getDerivedStateFromProps(nextProps);
}

componentWillUnmount() {
window.document.querySelector('html').classList.remove(`has-navbar-fixed-${this.props.fixed}`);
}
Expand Down

0 comments on commit 6416782

Please sign in to comment.