quail-ui 0.5.64 → 0.5.66

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
@@ -2842,7 +2842,7 @@ const qi = { class: "q-dialog-body" }, Si = { class: "q-dialog-header" }, Oi = {
2842
2842
  return l.value && _.push("shaking"), s || _.push(`desktop-mode-${n.desktopMode}`), n.noFrame && _.push("no-frame"), _.join(" ");
2843
2843
  }), x = y(() => {
2844
2844
  let _ = [];
2845
- return f.value && _.push("desktop-mode-popup"), n.popupPosition === "top" ? _.push("position-top") : _.push("position-bottom"), _.join(" ");
2845
+ return f.value && _.push("desktop-mode-popup"), s && (n.popupPosition === "top" ? _.push("position-top") : _.push("position-bottom")), _.join(" ");
2846
2846
  });
2847
2847
  q(
2848
2848
  () => n.modelValue,
@@ -2852,7 +2852,7 @@ const qi = { class: "q-dialog-body" }, Si = { class: "q-dialog-header" }, Oi = {
2852
2852
  const v = p.value.children[0];
2853
2853
  if (v) {
2854
2854
  const M = v.getBoundingClientRect().height + 8, I = 0;
2855
- n.popupPosition === "top" ? c.value = { bottom: `${M}px`, left: `${I}px` } : c.value = { top: `${M}px`, left: `${I}px` };
2855
+ f.value && (n.popupPosition === "top" ? c.value = { bottom: `${M}px`, left: `${I}px` } : c.value = { top: `${M}px`, left: `${I}px` });
2856
2856
  }
2857
2857
  }
2858
2858
  _ ? document.body.style.overflowY = "hidden" : document.body.style.overflowY = "auto";