Fixed #2871 - OverlayPanel: Doesn't work in SSR
parent
2196716fe8
commit
aafa0ca3a1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue