Fixed #2382 - StyleClass may fail to enter the element defect

pull/2383/head
Tuğçe Küçükoğlu 2022-03-31 09:11:43 +03:00
parent e8287ca861
commit f15b91f840
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ function resolveTarget(el, binding) {
function bindDocumentListener(target, el, binding) { function bindDocumentListener(target, el, binding) {
if (!target.$p_styleclass_documentlistener) { if (!target.$p_styleclass_documentlistener) {
target.$p_styleclass_documentlistener = (event) => { target.$p_styleclass_documentlistener = (event) => {
if (isVisible(target) || getComputedStyle(target).getPropertyValue('position') === 'static') { if (!isVisible(target) || getComputedStyle(target).getPropertyValue('position') === 'static') {
unbindDocumentListener(target); unbindDocumentListener(target);
} }