@haiilo/catalyst 10.28.1 → 10.28.2

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.
@@ -13251,9 +13251,6 @@ const CatTabs = class {
13251
13251
  this.tabs = Array.from(this.hostElement.querySelectorAll('cat-tab'));
13252
13252
  this.activeTab = this.activeTab || this.tabs.filter(tab => this.canActivate(tab) && !tab.noActive)[0]?.id;
13253
13253
  }
13254
- canActivate(tab) {
13255
- return !!tab && !tab.deactivated && !tab.url && tab.id !== this.activeTab;
13256
- }
13257
13254
  click(tab) {
13258
13255
  if (this.canActivate(tab)) {
13259
13256
  tab.click();
@@ -13263,10 +13260,16 @@ const CatTabs = class {
13263
13260
  }
13264
13261
  }
13265
13262
  activate(tab) {
13266
- if (this.canActivate(tab)) {
13263
+ if (!tab) {
13264
+ this.activeTab = '';
13265
+ }
13266
+ else if (this.canActivate(tab)) {
13267
13267
  this.activeTab = tab.id;
13268
13268
  }
13269
13269
  }
13270
+ canActivate(tab) {
13271
+ return !tab.deactivated && !tab.url && tab.id !== this.activeTab;
13272
+ }
13270
13273
  static get delegatesFocus() { return true; }
13271
13274
  get hostElement() { return index.getElement(this); }
13272
13275
  static get watchers() { return {