@fkui/vue 5.46.1 → 5.46.3

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.
@@ -6052,6 +6052,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
6052
6052
  if (!isMounted.value) {
6053
6053
  return;
6054
6054
  }
6055
+ if (detail.elementId !== props.id) {
6056
+ return;
6057
+ }
6055
6058
  if (!props.focusRef) {
6056
6059
  throw new Error("Element to focus on when card is invalid (`focusRef`) is required when using card validation.");
6057
6060
  }
@@ -6882,6 +6885,9 @@ const _sfc_main$X = defineComponent({
6882
6885
  },
6883
6886
  errorStyle() {
6884
6887
  return `--i-popup-error-offset: ${this.arrowOffset}px`;
6888
+ },
6889
+ teleportTarget() {
6890
+ return config.teleportTarget;
6885
6891
  }
6886
6892
  },
6887
6893
  watch: {
@@ -6974,7 +6980,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
6974
6980
  const _component_f_icon = resolveComponent("f-icon");
6975
6981
  return _ctx.isOpen ? (openBlock(), createBlock(Teleport, {
6976
6982
  key: 0,
6977
- to: "body",
6983
+ to: _ctx.teleportTarget,
6978
6984
  disabled: _ctx.teleportDisabled
6979
6985
  }, [createElementVNode("div", {
6980
6986
  ref: "popup",
@@ -6992,7 +6998,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
6992
6998
  }, [createVNode(_component_f_icon, {
6993
6999
  name: "close",
6994
7000
  class: "button__icon"
6995
- })])], 6)], 512)], 2)], 8, ["disabled"])) : createCommentVNode("", true);
7001
+ })])], 6)], 512)], 2)], 8, ["to", "disabled"])) : createCommentVNode("", true);
6996
7002
  }
6997
7003
  const IPopupError = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$K]]);
6998
7004
  function numItems(itemHeight, availableHeight, verticalSpacing) {