From f15b91f840d71c6bab32e144b5cf1416b643d44a 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: Thu, 31 Mar 2022 09:11:43 +0300 Subject: [PATCH] Fixed #2382 - StyleClass may fail to enter the element defect --- src/components/styleclass/StyleClass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/styleclass/StyleClass.js b/src/components/styleclass/StyleClass.js index 43be415ce..871232c54 100644 --- a/src/components/styleclass/StyleClass.js +++ b/src/components/styleclass/StyleClass.js @@ -137,7 +137,7 @@ function resolveTarget(el, binding) { function bindDocumentListener(target, el, binding) { if (!target.$p_styleclass_documentlistener) { target.$p_styleclass_documentlistener = (event) => { - if (isVisible(target) || getComputedStyle(target).getPropertyValue('position') === 'static') { + if (!isVisible(target) || getComputedStyle(target).getPropertyValue('position') === 'static') { unbindDocumentListener(target); }