Skip to content

Commit

Permalink
Merge pull request #10 from coreui/fix-sidebar-ps-issue
Browse files Browse the repository at this point in the history
fix: minimized sidebar scrollbar issue
  • Loading branch information
xidedix authored May 9, 2018
2 parents 0e9a16e + 98bf0af commit fdb3310
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 fdb3310

Please sign in to comment.