Fixed #1436 - StyleClass does not open overlay when source is clicked again
parent
41c7fd0c72
commit
0c16992f5b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue