Bläddra i källkod

Force popup closing when closing the detailed card pane

Fixes #283
Maxime Quandalle 10 år sedan
förälder
incheckning
6a92963e2a
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      client/config/router.js

+ 2 - 0
client/config/router.js

@@ -29,6 +29,8 @@ FlowRouter.route('/b/:id/:slug', {
     // want to excape every current actions (filters, etc.)
     if (previousBoard !== currentBoard) {
       EscapeActions.executeAll();
+    } else {
+      EscapeActions.executeUpTo('popup-close');
     }
 
     BlazeLayout.render('defaultLayout', { content: 'board' });