Skip to content

Commit

Permalink
Fixed #2871 - OverlayPanel: Doesn't work in SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 23, 2022
1 parent 2196716 commit aafa0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/overlaypanel/OverlayPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aafa0ca

Please sign in to comment.