@thinkpixellab-public/px-vue 3.0.108 → 3.0.109

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.
@@ -123,7 +123,13 @@ export default {
123
123
  return;
124
124
  }
125
125
 
126
- const selected = this.$refs[this.getTabContentRefName(this.selectedItem)][0];
126
+ const refName = this.getTabContentRefName(this.selectedItem);
127
+
128
+ if (!this.$refs[refName]) {
129
+ return;
130
+ }
131
+
132
+ const selected = this.$refs[refName][0];
127
133
  const selectedRect = utils.getClientRect(selected, this.$refs.tabs);
128
134
 
129
135
  if (selected) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkpixellab-public/px-vue",
3
- "version": "3.0.108",
3
+ "version": "3.0.109",
4
4
  "description": "General purpose Vue components and helpers that can be used across projects.",
5
5
  "author": "Pixel Lab",
6
6
  "license": "MIT",
@@ -36,4 +36,4 @@ const getFontFromElement = element => {
36
36
  };
37
37
 
38
38
  export default textWidth;
39
- export { getFontFromElement };
39
+ export { textWidth, getFontFromElement };