@iris-ui-kit/vue 0.2.9 → 0.2.10

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.cjs CHANGED
@@ -3183,6 +3183,10 @@ var IrisPopover = vue.defineComponent({
3183
3183
  return () => slots.default?.();
3184
3184
  }
3185
3185
  });
3186
+ function resolveTriggerElement(value) {
3187
+ const candidate = value !== null && typeof value === "object" && "$el" in value ? value.$el : value;
3188
+ return typeof HTMLElement !== "undefined" && candidate instanceof HTMLElement ? candidate : null;
3189
+ }
3186
3190
  var IrisPopoverTrigger = vue.defineComponent({
3187
3191
  name: "IrisPopoverTrigger",
3188
3192
  inheritAttrs: false,
@@ -3199,7 +3203,7 @@ var IrisPopoverTrigger = vue.defineComponent({
3199
3203
  ctx.setOpen(!ctx.open.value);
3200
3204
  };
3201
3205
  const captureRef = (el) => {
3202
- ctx.triggerRef.value = el ?? null;
3206
+ ctx.triggerRef.value = resolveTriggerElement(el);
3203
3207
  };
3204
3208
  return () => {
3205
3209
  const triggerProps = {