@bimdata/design-system 3.0.0-beta.20 → 3.0.0-beta.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bimdata/design-system",
3
- "version": "3.0.0-beta.20",
3
+ "version": "3.0.0-beta.21",
4
4
  "type": "module",
5
5
  "main": "./src/BIMDataComponents/index.js",
6
6
  "module": "./src/BIMDataComponents/index.js",
@@ -132,9 +132,11 @@ export default {
132
132
  this.$refs.container.scrollTo(this.scrollValues[this.displayIndex], 0);
133
133
  },
134
134
  onTabClick(tab) {
135
- this.activeTab = tab;
136
- this.$emit("tab-click", tab);
137
- this.$emit("tab-selected", tab);
135
+ if (!tab.disabled) {
136
+ this.activeTab = tab;
137
+ this.$emit("tab-click", tab);
138
+ this.$emit("tab-selected", tab);
139
+ }
138
140
  },
139
141
  _setSelected(value) {
140
142
  if (typeof value === "number" && value >= 0 && value < this.tabs.length) {