Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Example for inbox #2
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Nov 24, 2016
1 parent 1748905 commit 59f8948
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/app/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ class Header extends Component {
}else{
toggleBreadcrumb();
}

}

componentDidMount() {
document.addEventListener('scroll', this.handleScroll);
}

componentWillUnmount() {
document.removeEventListener('scroll', this.handleScroll);
}
Expand Down

0 comments on commit 59f8948

Please sign in to comment.