Skip to content

Commit

Permalink
Merge 0dd2790 into 4194bea
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcwood committed Jul 22, 2020
2 parents 4194bea + 0dd2790 commit abdfcc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/javascript/packs/controllers/nav_menu_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export default class extends Controller {
}

disconnect () {
this.closeMenu()
if (this.data.get('open') === 'true') {
this.data.set('open', 'false')
this.navSidebarTarget.classList.remove('sidebar_open')
this.navHamburgerTarget.classList.remove('clicked')
}
}
}

0 comments on commit abdfcc0

Please sign in to comment.