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