@whitesev/pops 1.2.0 → 1.2.2
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/dist/index.amd.js +14 -10
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +14 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +14 -10
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +14 -10
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +14 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/components/rightClickMenu/indexType.d.ts +5 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8964,11 +8964,13 @@ class PopsRightClickMenu {
|
|
|
8964
8964
|
popsDOMUtils.on(globalThis, "click touchstart", void 0, PopsContextMenu.windowCheckClickEvent, {
|
|
8965
8965
|
capture: true,
|
|
8966
8966
|
});
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8967
|
+
if (config.target instanceof Node) {
|
|
8968
|
+
const $shadowRoot = config.target.getRootNode();
|
|
8969
|
+
if ($shadowRoot instanceof ShadowRoot) {
|
|
8970
|
+
popsDOMUtils.on($shadowRoot, "click touchstart", void 0, PopsContextMenu.shadowRootCheckClickEvent, {
|
|
8971
|
+
capture: true,
|
|
8972
|
+
});
|
|
8973
|
+
}
|
|
8972
8974
|
}
|
|
8973
8975
|
},
|
|
8974
8976
|
/**
|
|
@@ -8978,11 +8980,13 @@ class PopsRightClickMenu {
|
|
|
8978
8980
|
popsDOMUtils.off(globalThis, "click touchstart", void 0, PopsContextMenu.windowCheckClickEvent, {
|
|
8979
8981
|
capture: true,
|
|
8980
8982
|
});
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8983
|
+
if (config.target instanceof Node) {
|
|
8984
|
+
const $shadowRoot = config.target.getRootNode();
|
|
8985
|
+
if ($shadowRoot instanceof ShadowRoot) {
|
|
8986
|
+
popsDOMUtils.off($shadowRoot, "click touchstart", void 0, PopsContextMenu.windowCheckClickEvent, {
|
|
8987
|
+
capture: true,
|
|
8988
|
+
});
|
|
8989
|
+
}
|
|
8986
8990
|
}
|
|
8987
8991
|
},
|
|
8988
8992
|
/**
|