Fixed #1436 - StyleClass does not open overlay when source is clicked again

pull/1440/head
Cagatay Civici 2021-08-10 16:35:46 +03:00
parent 41c7fd0c72
commit 0c16992f5b
1 changed files with 4 additions and 1 deletions

View File

@ -109,6 +109,10 @@ function leave(target, binding) {
DomHandler.addClass(target, binding.value.leaveToClass);
}
}
if (binding.value.hideOnOutsideClick) {
unbindDocumentListener(target);
}
}
function resolveTarget(el, binding) {
@ -138,7 +142,6 @@ function bindDocumentListener(target, el, binding) {
}
else if (!el.isSameNode(event.target) && !el.contains(event.target) && !target.contains(event.target)) {
leave(target, binding);
unbindDocumentListener(target);
}
}