From 1d1be6b4d047c91e0d93e14f5205b56d1ab8bba8 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 14 Apr 2021 16:08:04 +0300 Subject: [PATCH] Fixed #1161 - OverlayPanel throws an error if still open when a new route is pushed --- src/components/overlaypanel/OverlayPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/overlaypanel/OverlayPanel.vue b/src/components/overlaypanel/OverlayPanel.vue index 140b5bc58..de2fecce1 100755 --- a/src/components/overlaypanel/OverlayPanel.vue +++ b/src/components/overlaypanel/OverlayPanel.vue @@ -117,7 +117,7 @@ export default { } OverlayEventBus.on('overlay-click', e => { - if (this.container.contains(e.target)) { + if (this.container && this.container.contains(e.target)) { this.selfClick = true; } });