mediacube-ui-v2 0.0.128 → 0.0.129

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.
@@ -19682,10 +19682,19 @@ const Rv = ["dir"], Iv = ["for"], Yv = ["for"], Nv = { class: "mc-field-text__ma
19682
19682
  }), Wa(() => {
19683
19683
  window.removeEventListener("resize", O), window.removeEventListener("transitionrun", O);
19684
19684
  });
19685
- const v = () => {
19686
- E(!o.value);
19685
+ const v = (x, S) => {
19686
+ console.log("toggleDropdown", S), E(x);
19687
+ const C = new PointerEvent("click", {
19688
+ bubbles: !0,
19689
+ cancelable: !0,
19690
+ view: window
19691
+ });
19692
+ Object.defineProperty(C, "originalTarget", {
19693
+ value: S.target,
19694
+ enumerable: !1
19695
+ }), window.dispatchEvent(C);
19687
19696
  }, y = (x) => {
19688
- const S = x.target;
19697
+ const S = x.originalTarget || x.target;
19689
19698
  o.value && !S.closest(`#${n}`) && A();
19690
19699
  }, A = () => {
19691
19700
  E(!1);
@@ -19720,7 +19729,7 @@ const Rv = ["dir"], Iv = ["for"], Yv = ["for"], Nv = { class: "mc-field-text__ma
19720
19729
  ref: i,
19721
19730
  tabindex: "0",
19722
19731
  onKeyup: Ht(A, ["esc"]),
19723
- onClick: v
19732
+ onClick: S[0] || (S[0] = Le((C) => v(!o.value, C), ["prevent", "stop"]))
19724
19733
  }, [
19725
19734
  I(x.$slots, "activator")
19726
19735
  ], 544),