Skip to content

Commit 7ba3485

Browse files
Fix: Ensure drawer closed after possible manual router:navigate call (#497)
1 parent 8ccfa5c commit 7ba3485

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

js/drawer.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ class Drawer extends Backbone.Controller {
1111
this.listenTo(Adapt, {
1212
'adapt:start': this.onAdaptStart,
1313
'app:languageChanged': this.onLanguageChanged,
14-
'navigation:toggleDrawer': this.toggle
14+
'navigation:toggleDrawer': this.toggle,
15+
'router:navigate': this.close
1516
});
1617
}
17-
18+
1819
onAdaptStart() {
1920
this._drawerView = new DrawerView({ collection: DrawerCollection });
2021
}
21-
22+
2223
onLanguageChanged() {
2324
tooltips.register({
2425
_id: 'drawer',

0 commit comments

Comments
 (0)