Skip to content

Commit

Permalink
Fix body overfolow hidden in mobile view on page change
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedTaiebBsf committed Mar 16, 2022
1 parent dbf2d9a commit c2c3af6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": {
"name": "Mohamed Taieb Boussoffara"
},
"version": "1.0.3",
"version": "1.0.4",
"private": true,
"dependencies": {
"@apollo/client": "^3.5.8",
Expand Down
1 change: 1 addition & 0 deletions src/pages/layout/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class Layout extends Component {

componentWillUnmount() {
window.removeEventListener("resize", this.updateBrowserSize);
document.body.style.overflow = "";
}

componentDidMount() {
Expand Down

0 comments on commit c2c3af6

Please sign in to comment.