@pequity/squirrel 1.0.28-beta.1 → 1.0.28

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.
@@ -244,10 +244,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
244
244
  scrollToActiveItem();
245
245
  };
246
246
  const onHide = () => {
247
- var _a;
247
+ var _a, _b;
248
248
  dropdownShow.value = false;
249
249
  destroyNavigationSvc();
250
- ((_a = formControl.value) == null ? void 0 : _a.querySelector("button")).focus();
250
+ (_b = (_a = formControl.value) == null ? void 0 : _a.querySelector("button")) == null ? void 0 : _b.focus();
251
251
  };
252
252
  return (_ctx, _cache) => {
253
253
  const _directive_close_popper = vue.resolveDirective("close-popper");
@@ -54,7 +54,8 @@ const _sfc_main = vue.defineComponent({
54
54
  handler() {
55
55
  setTimeout(() => this.setPillStyle(), 60);
56
56
  },
57
- immediate: true
57
+ immediate: true,
58
+ flush: "post"
58
59
  }
59
60
  },
60
61
  methods: {
@@ -69,8 +70,10 @@ const _sfc_main = vue.defineComponent({
69
70
  return;
70
71
  }
71
72
  const dimensions = el.offsetWidth !== 0 ? { left: `${el.offsetLeft}px`, width: `${el.offsetWidth}px` } : getOffsetValues(this.$el);
72
- this.$refs.pill.style.left = dimensions.left;
73
- this.$refs.pill.style.width = dimensions.width;
73
+ if (this.$refs.pill && this.$refs.pill instanceof HTMLElement) {
74
+ this.$refs.pill.style.left = dimensions.left;
75
+ this.$refs.pill.style.width = dimensions.width;
76
+ }
74
77
  }
75
78
  }
76
79
  });