mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:52:49 +08:00
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) {
|
||||
const widget = node[CLICK_ATTRIBUTE_NAME];
|
||||
if (widget) {
|
||||
return widget.rerenderResult(() => widget.click(e));
|
||||
widget.rerenderResult(() => widget.click(e));
|
||||
break;
|
||||
}
|
||||
node = node.parentNode;
|
||||
}
|
||||
|
@ -53,7 +54,7 @@ WidgetClickHook.setupDocumentCallback = function() {
|
|||
if (outNode.contains(node)) { return; }
|
||||
const widget = outNode[CLICK_OUTSIDE_ATTRIBUTE_NAME];
|
||||
if (widget) {
|
||||
return widget.clickOutside(e);
|
||||
widget.clickOutside(e);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user