niuma-ui 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -522,6 +522,10 @@ var RsContextMenu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
522
522
|
if (!open.value) return;
|
|
523
523
|
const target = event.target;
|
|
524
524
|
if (target instanceof Node && isInsideMenu(target)) return;
|
|
525
|
+
const trigger = triggerEl.value;
|
|
526
|
+
if (trigger && target instanceof Node) {
|
|
527
|
+
if (!(target.contains(trigger) || trigger.contains(target))) return;
|
|
528
|
+
}
|
|
525
529
|
restoreOnClose = false;
|
|
526
530
|
setOpen(false);
|
|
527
531
|
}
|