@iris-ui-kit/vue 0.2.9 → 0.2.11

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
@@ -134,6 +134,10 @@ var IrisPopover = defineComponent({
134
134
  return () => slots.default?.();
135
135
  }
136
136
  });
137
+ function resolveTriggerElement(value) {
138
+ const candidate = value !== null && typeof value === "object" && "$el" in value ? value.$el : value;
139
+ return typeof HTMLElement !== "undefined" && candidate instanceof HTMLElement ? candidate : null;
140
+ }
137
141
  var IrisPopoverTrigger = defineComponent({
138
142
  name: "IrisPopoverTrigger",
139
143
  inheritAttrs: false,
@@ -150,7 +154,7 @@ var IrisPopoverTrigger = defineComponent({
150
154
  ctx.setOpen(!ctx.open.value);
151
155
  };
152
156
  const captureRef = (el) => {
153
- ctx.triggerRef.value = el ?? null;
157
+ ctx.triggerRef.value = resolveTriggerElement(el);
154
158
  };
155
159
  return () => {
156
160
  const triggerProps = {