Merge pull request #2383 from tugcekucukoglu/defect

Fixed #2382 - StyleClass may fail to enter the element defect
pull/2384/head
Tuğçe Küçükoğlu 2022-03-31 09:12:28 +03:00 committed by GitHub
commit 799198ec2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}