@whitesev/pops 2.0.12 → 2.0.13
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 +8 -5
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +8 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +8 -5
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +8 -5
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +8 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -1
- package/src/components/rightClickMenu/index.ts +7 -5
package/package.json
CHANGED
|
@@ -539,11 +539,13 @@ export const PopsRightClickMenu = {
|
|
|
539
539
|
clickEvent: MouseEvent | PointerEvent
|
|
540
540
|
) {
|
|
541
541
|
if (typeof item.callback === "function") {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
542
|
+
try {
|
|
543
|
+
OriginPrototype.Object.defineProperty(menuEvent, "target", {
|
|
544
|
+
get() {
|
|
545
|
+
return menuEventTarget;
|
|
546
|
+
},
|
|
547
|
+
});
|
|
548
|
+
} catch (error) {}
|
|
547
549
|
let callbackResult = await item.callback(
|
|
548
550
|
clickEvent as PointerEvent,
|
|
549
551
|
menuEvent,
|