Fixed #2382 - StyleClass may fail to enter the element defect
parent
e8287ca861
commit
f15b91f840
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue