@vmscloud/moz-ui-components-core 0.1.54 → 0.1.55

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.js CHANGED
@@ -7758,7 +7758,12 @@ const un = /* @__PURE__ */ new Set([
7758
7758
  const L = B()[b];
7759
7759
  return L != null && L.isHidden ? 0 : ee() && L && Ge(d, L.depth) ? K : M;
7760
7760
  },
7761
- measureElement: (b) => b.getBoundingClientRect().height,
7761
+ // 드롭다운이 아직 배치되지 않은 시점에는 높이가 0 으로 읽힌다. 0 을 캐시하면 행이 겹쳐 사라지고,
7762
+ // 다음 측정에서 virtual-core 가 그 차이만큼 스크롤을 보정해 목록이 열리자마자 아래로 밀린다.
7763
+ measureElement: (b) => {
7764
+ const L = b.getBoundingClientRect().height;
7765
+ return L > 0 ? L : Fe.options.estimateSize(Number(b.dataset.index));
7766
+ },
7762
7767
  overscan: 3,
7763
7768
  observeElementRect: Pt,
7764
7769
  observeElementOffset: Lt,
@@ -7769,7 +7774,9 @@ const un = /* @__PURE__ */ new Set([
7769
7774
  const Uo = (b) => {
7770
7775
  h = b ?? null, b && (Fe._willUpdate(), e.requestUpdate());
7771
7776
  }, _o = (b, L) => {
7772
- b && L === d && (K = b.getBoundingClientRect().height);
7777
+ if (!b || L !== d) return;
7778
+ const U = b.getBoundingClientRect().height;
7779
+ U > 0 && (K = U);
7773
7780
  }, Wo = (b) => b.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jt = (b, L) => {
7774
7781
  if (!$ || !Ge(d, L)) return [{ part: b, highlight: !1 }];
7775
7782
  const U = new RegExp(`(${Wo($)})`, "gi");