Merge pull request #2383 from tugcekucukoglu/defect
Fixed #2382 - StyleClass may fail to enter the element defectpull/2384/head
commit
799198ec2c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue