EXPERIMENTAL: clicks outside seem unreliable with absolute nodes (#7557)
This commit is contained in:
parent
1afe6d0aee
commit
0c6ebe66ce
|
@ -132,9 +132,10 @@ WidgetClickHook.setupDocumentCallback = function() {
|
||||||
let node = e.target;
|
let node = e.target;
|
||||||
const $outside = $("[data-click-outside]");
|
const $outside = $("[data-click-outside]");
|
||||||
$outside.each((i, outNode) => {
|
$outside.each((i, outNode) => {
|
||||||
if (outNode.contains(node)) {
|
if (outNode.contains(node) || outNode.style.position === "absolute") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const widget2 = outNode[CLICK_OUTSIDE_ATTRIBUTE_NAME];
|
const widget2 = outNode[CLICK_OUTSIDE_ATTRIBUTE_NAME];
|
||||||
if (widget2) {
|
if (widget2) {
|
||||||
widget2.clickOutside(e);
|
widget2.clickOutside(e);
|
||||||
|
|
Loading…
Reference in New Issue