Skip to content

Commit 3ea34ef

Browse files
committed
SVY-20313 tabIndex does not update accurately if set after calling
removeTabAt function [SERVOY] (hack for lts as this code is already gone in master; svyOnChanges is called twice for tabs and tabindex, even if they come in same ws message)
1 parent e79df79 commit 3ea34ef

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

projects/bootstrapcomponents/src/bts_basetabpanel.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ export class ServoyBootstrapBaseTabPanel<T extends HTMLElement> extends ServoyBo
6060
}).finally(() => this.cdRef.markForCheck());
6161
}
6262
else {
63-
this.select(this.tabs[index]);
63+
setTimeout(() => {
64+
// wait for tabindex changes that come later
65+
if (index == this.getRealTabIndex()){
66+
this.select(this.tabs[index]);
67+
}
68+
}, 0);
6469
}
6570
}
6671
}

0 commit comments

Comments
 (0)