Skip to content

Commit

Permalink
Fix: Ensure drawer closed after possible manual router:navigate call (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cahirodoherty-learningpool authored Feb 2, 2024
1 parent 8ccfa5c commit 7ba3485
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ class Drawer extends Backbone.Controller {
this.listenTo(Adapt, {
'adapt:start': this.onAdaptStart,
'app:languageChanged': this.onLanguageChanged,
'navigation:toggleDrawer': this.toggle
'navigation:toggleDrawer': this.toggle,
'router:navigate': this.close
});
}

onAdaptStart() {
this._drawerView = new DrawerView({ collection: DrawerCollection });
}

onLanguageChanged() {
tooltips.register({
_id: 'drawer',
Expand Down

0 comments on commit 7ba3485

Please sign in to comment.