@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.cjs.js CHANGED
@@ -10313,11 +10313,14 @@ const PopsRightClickMenu = {
10313
10313
  */
10314
10314
  async function liElementClickEvent(clickEvent) {
10315
10315
  if (typeof item.callback === "function") {
10316
- OriginPrototype.Object.defineProperty(menuEvent, "target", {
10317
- get() {
10318
- return menuEventTarget;
10319
- },
10320
- });
10316
+ try {
10317
+ OriginPrototype.Object.defineProperty(menuEvent, "target", {
10318
+ get() {
10319
+ return menuEventTarget;
10320
+ },
10321
+ });
10322
+ }
10323
+ catch (error) { }
10321
10324
  let callbackResult = await item.callback(clickEvent, menuEvent, menuLiElement, menuListenerRootNode);
10322
10325
  if (typeof callbackResult === "boolean" &&
10323
10326
  callbackResult == false) {