Skip to content

Commit

Permalink
Merge pull request #66 from stevenkuipers/bm-overlay
Browse files Browse the repository at this point in the history
changed className method to classList
  • Loading branch information
mbj36 authored Oct 13, 2019
2 parents a7114e6 + 2c5f706 commit d3dce96
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
this.isSideBarOpen = true;
if (!this.noOverlay) {
document.body.className += 'bm-overlay';
document.body.classList.add('bm-overlay');
}
if (this.right) {
this.$refs.sideNav.style.left = 'auto';
Expand All @@ -89,10 +89,7 @@
closeMenu() {
this.$emit('closeMenu');
this.isSideBarOpen = false;
document.body.className = document.body.className.replace(
'bm-overlay',
''
);
document.body.classList.remove('bm-overlay');
this.$refs.sideNav.style.width = '0px';
},
Expand Down

0 comments on commit d3dce96

Please sign in to comment.