Skip to content

Commit

Permalink
fix: minimized sidebar scrollbar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xidedix committed May 9, 2018
1 parent 0e9a16e commit 98bf0af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SidebarMinimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ class AppSidebarMinimizer extends Component {
document.body.classList.toggle('sidebar-minimized');
const sidebar = document.querySelector('.sidebar-nav')
if (sidebar) {
sidebar.classList.toggle('ps');
sidebar.classList.toggle('scrollbar-container');
const toggleOn = sidebar.classList.toggle('ps');
sidebar.classList.toggle('scrollbar-container', toggleOn);
sidebar.classList.toggle('ps--active-y', toggleOn);
}
}

Expand Down

0 comments on commit 98bf0af

Please sign in to comment.