diff --git a/components/lib/styleclass/StyleClass.js b/components/lib/styleclass/StyleClass.js index 688b9f14b..563f1b7d1 100644 --- a/components/lib/styleclass/StyleClass.js +++ b/components/lib/styleclass/StyleClass.js @@ -145,7 +145,7 @@ const StyleClass = BaseStyleClass.extend('styleclass', { target.$p_styleclass_documentlistener = (event) => { if (!this.isVisible(target) || getComputedStyle(target).getPropertyValue('position') === 'static') { this.unbindDocumentListener(target); - } else if (isOutsideClick(event, target, el)) { + } else if (this.isOutsideClick(event, target, el)) { this.leave(target, binding); } };