@ardium-ui/ui 5.0.0-alpha.21 → 5.0.0-alpha.22

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.
@@ -14128,11 +14128,13 @@ class ArdiumTabberComponent {
14128
14128
  if (changes['selectedTabId']) {
14129
14129
  // make sure the tab exists
14130
14130
  const newTabId = changes['selectedTabId'].currentValue;
14131
- const oldTabId = changes['selectedTabId'].previousValue;
14132
- const isValid = this._validateSelectedTabId(newTabId, oldTabId);
14133
- if (!isValid && this.tabs().some(tab => !tab._isTabIdInitialized)) {
14131
+ if (this.tabs().some(tab => !tab._isTabIdInitialized)) {
14134
14132
  this._selectedTabIdToCheck = newTabId;
14135
14133
  }
14134
+ else {
14135
+ const oldTabId = changes['selectedTabId'].previousValue;
14136
+ this._validateSelectedTabId(newTabId, oldTabId);
14137
+ }
14136
14138
  }
14137
14139
  }
14138
14140
  _validateSelectedTabId(newTabId, oldTabId) {
@@ -14141,7 +14143,7 @@ class ArdiumTabberComponent {
14141
14143
  if (!newTab) {
14142
14144
  // tabs are initialized but the tab does not exist, show error
14143
14145
  console.error(`ARD-NF6000: Trying to select a tab with id '${newTabId}' that does not exist.`);
14144
- return false;
14146
+ return;
14145
14147
  }
14146
14148
  // tab exists, select it and unselect the old one
14147
14149
  if (oldTabId !== null) {
@@ -14151,7 +14153,6 @@ class ArdiumTabberComponent {
14151
14153
  }
14152
14154
  this._selectNewTab(newTab);
14153
14155
  }
14154
- return true;
14155
14156
  }
14156
14157
  ngAfterContentInit() {
14157
14158
  let selectedCmp = null;