From 64ec18868c0035fd7171c0d3660af88070e69945 Mon Sep 17 00:00:00 2001 From: schnapsterdog Date: Mon, 13 Dec 2021 17:12:00 +0100 Subject: [PATCH] N8N-2675 Fixed UpdatedPanel Not closing --- packages/editor-ui/src/components/ModalDrawer.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/ModalDrawer.vue b/packages/editor-ui/src/components/ModalDrawer.vue index ed9c3d82ce380..f48fcbe4f96d5 100644 --- a/packages/editor-ui/src/components/ModalDrawer.vue +++ b/packages/editor-ui/src/components/ModalDrawer.vue @@ -3,7 +3,7 @@ :direction="direction" :visible="visible" :size="width" - :before-close="beforeClose" + :before-close="close" :modal="modal" :wrapperClosable="wrapperClosable" > @@ -79,6 +79,10 @@ export default Vue.extend({ } }, close() { + if (this.beforeClose) { + this.beforeClose(); + return; + } this.$store.commit('ui/closeTopModal'); }, },