@cloud-ru/ds-uikit-product-header-legacy 0.1.9 → 0.1.10

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.
@@ -49,7 +49,7 @@ function MenuDesktop({ open: openProp, setOpen: setOpenProp, settingItems, platf
49
49
  e?.preventDefault();
50
50
  return;
51
51
  }
52
- if (!(0, shouldBeOpenedInNewTab_1.shouldBeOpenedInNewTab)()) {
52
+ if (!(0, shouldBeOpenedInNewTab_1.shouldBeOpenedInNewTab)(e)) {
53
53
  e?.preventDefault();
54
54
  handleCloseDrawer();
55
55
  }
@@ -40,7 +40,7 @@ function MenuMobile({ open: openProp, setOpen: setOpenProp, settingItems, platfo
40
40
  e?.preventDefault();
41
41
  return;
42
42
  }
43
- if (!(0, shouldBeOpenedInNewTab_1.shouldBeOpenedInNewTab)()) {
43
+ if (!(0, shouldBeOpenedInNewTab_1.shouldBeOpenedInNewTab)(e)) {
44
44
  e?.preventDefault();
45
45
  handleCloseDrawer();
46
46
  }
@@ -43,7 +43,7 @@ export function MenuDesktop({ open: openProp, setOpen: setOpenProp, settingItems
43
43
  e?.preventDefault();
44
44
  return;
45
45
  }
46
- if (!shouldBeOpenedInNewTab()) {
46
+ if (!shouldBeOpenedInNewTab(e)) {
47
47
  e?.preventDefault();
48
48
  handleCloseDrawer();
49
49
  }
@@ -34,7 +34,7 @@ export function MenuMobile({ open: openProp, setOpen: setOpenProp, settingItems,
34
34
  e?.preventDefault();
35
35
  return;
36
36
  }
37
- if (!shouldBeOpenedInNewTab()) {
37
+ if (!shouldBeOpenedInNewTab(e)) {
38
38
  e?.preventDefault();
39
39
  handleCloseDrawer();
40
40
  }