From 202cff093fdb472243765b8e563156ceac2b3b6d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 10 Sep 2024 22:42:50 +0200 Subject: [PATCH] [UI] Modals should react on escape only if the container element is present. --- platypush/backend/http/webapp/src/components/Modal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/http/webapp/src/components/Modal.vue b/platypush/backend/http/webapp/src/components/Modal.vue index 931f80f400..a3df10fddf 100644 --- a/platypush/backend/http/webapp/src/components/Modal.vue +++ b/platypush/backend/http/webapp/src/components/Modal.vue @@ -143,7 +143,7 @@ export default { }, onEscape() { - if (!this.isVisible || this.ignoreEscape) + if (!this.isVisible || this.ignoreEscape || !this.$refs.container) return const myZIndex = parseInt(getComputedStyle(this.$refs.container).zIndex)