@dao-style/core 0.0.1-beta.6 → 0.0.1-beta.7

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.
@@ -2565,10 +2565,17 @@ const _sfc_main$t = defineComponent({
2565
2565
  }
2566
2566
  };
2567
2567
  const handleDocumentClick = (e) => {
2568
+ let { target } = e;
2569
+ if (e.composed) {
2570
+ const composedPath = e.composedPath();
2571
+ if (composedPath.length) {
2572
+ [target] = composedPath;
2573
+ }
2574
+ }
2568
2575
  if (!unref(isOpen)) {
2569
2576
  return;
2570
2577
  }
2571
- if (!(_popperNode == null ? void 0 : _popperNode.contains(e.target)) && !(_targetNode == null ? void 0 : _targetNode.contains(e.target))) {
2578
+ if (!(_popperNode == null ? void 0 : _popperNode.contains(target)) && !(_targetNode == null ? void 0 : _targetNode.contains(target))) {
2572
2579
  hide();
2573
2580
  }
2574
2581
  };