FIX: Clicking on another widget should not prevent clickOutside
This commit is contained in:
parent
9d8db11cf3
commit
71ef6ea518
|
@ -42,7 +42,8 @@ WidgetClickHook.setupDocumentCallback = function() {
|
||||||
while (node) {
|
while (node) {
|
||||||
const widget = node[CLICK_ATTRIBUTE_NAME];
|
const widget = node[CLICK_ATTRIBUTE_NAME];
|
||||||
if (widget) {
|
if (widget) {
|
||||||
return widget.rerenderResult(() => widget.click(e));
|
widget.rerenderResult(() => widget.click(e));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
node = node.parentNode;
|
node = node.parentNode;
|
||||||
}
|
}
|
||||||
|
@ -53,7 +54,7 @@ WidgetClickHook.setupDocumentCallback = function() {
|
||||||
if (outNode.contains(node)) { return; }
|
if (outNode.contains(node)) { return; }
|
||||||
const widget = outNode[CLICK_OUTSIDE_ATTRIBUTE_NAME];
|
const widget = outNode[CLICK_OUTSIDE_ATTRIBUTE_NAME];
|
||||||
if (widget) {
|
if (widget) {
|
||||||
return widget.clickOutside(e);
|
widget.clickOutside(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue