File tree Expand file tree Collapse file tree
projects/bootstrapcomponents/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ export class ServoyBootstrapBaseTabPanel<T extends HTMLElement> extends ServoyBo
4242 // quickly generate the id's for a the tab html id (and selecting it)
4343 this . generateIDs ( ) ;
4444 if ( ! changes [ 'tabs' ] . firstChange && this . selectedTab ) {
45- const index = this . getRealTabIndex ( ) ;
46- if ( index >= 0 ) {
47- if ( this . tabs [ index ] == this . selectedTab && this . selectedTab . containedForm != this . selectedTabContainedForm ) {
45+ const realTabIndex = this . getRealTabIndex ( ) ;
46+ if ( realTabIndex >= 0 ) {
47+ if ( this . tabs [ realTabIndex ] == this . selectedTab && this . selectedTab . containedForm != this . selectedTabContainedForm ) {
4848 // contained form was changed
4949 let promise ;
5050 if ( this . selectedTabContainedForm )
@@ -62,8 +62,8 @@ export class ServoyBootstrapBaseTabPanel<T extends HTMLElement> extends ServoyBo
6262 else {
6363 setTimeout ( ( ) => {
6464 // wait for tabindex changes that come later
65- if ( index == this . getRealTabIndex ( ) ) {
66- this . select ( this . tabs [ index ] ) ;
65+ if ( realTabIndex == this . getRealTabIndex ( ) ) {
66+ this . select ( this . tabs [ realTabIndex ] ) ;
6767 }
6868 } , 0 ) ;
6969 }
You can’t perform that action at this time.
0 commit comments