From aafa0ca3a154fc59349155b9e70264a3e43ca317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 23 Aug 2022 10:01:42 +0300 Subject: [PATCH] Fixed #2871 - OverlayPanel: Doesn't work in SSR --- 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 4ce7a41f1..b15c19015 100755 --- a/src/components/overlaypanel/OverlayPanel.vue +++ b/src/components/overlaypanel/OverlayPanel.vue @@ -179,7 +179,7 @@ export default { } }, bindOutsideClickListener() { - if (!this.outsideClickListener) { + if (!this.outsideClickListener && DomHandler.isClient()) { this.outsideClickListener = (event) => { if (this.visible && !this.selfClick && !this.isTargetClicked(event)) { this.visible = false;