@emuanalytics/flow-rdf-ui 4.0.11 → 4.0.12

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.
@@ -255,8 +255,12 @@ class FlowUiTabGroup extends FlowRdfElement {
255
255
  syncTabsAndPanels() {
256
256
  this.tabs = this.getAllTabs({ includeDisabled: false });
257
257
  this.panels = this.getAllPanels();
258
- this.syncIndicator();
259
- this.updateComplete.then(() => this.updateScrollControls());
258
+ if (this.activeTab && this.tabs.includes(this.activeTab) === false) {
259
+ this.setActiveTab(this.tabs.find((el) => !el.disabled) ?? this.tabs[0], { emitEvents: true });
260
+ } else {
261
+ this.syncIndicator();
262
+ this.updateComplete.then(() => this.updateScrollControls());
263
+ }
260
264
  }
261
265
  updateScrollControls() {
262
266
  if (this.noScrollControls) {