From d2faec45bb17910a75c4b7a5fbf73e7b9155755d Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 20 Dec 2016 16:10:33 +0200 Subject: [PATCH] close modal on location change --- client/src/views/modals/detail.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/views/modals/detail.js b/client/src/views/modals/detail.js index 8b86d675b8..9d2e0e1545 100644 --- a/client/src/views/modals/detail.js +++ b/client/src/views/modals/detail.js @@ -138,6 +138,10 @@ Espo.define('views/modals/detail', 'views/modal', function (Dep) { this.createRecordView(); } }, this); + + this.listenToOnce(this.getRouter(), 'routed', function () { + this.remove(); + }, this); }, addEditButton: function () {