Skip to content

Commit e4845e5

Browse files
committed
SVY-20314 Issues with tabpanel removing active tab.
1 parent bb651c2 commit e4845e5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

projects/bootstrapcomponents/src/bts_basetabpanel.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ export class ServoyBootstrapBaseTabPanel<T extends HTMLElement> extends ServoyBo
9999
}
100100
if (this.isValidTab(tab)) {
101101
if (this.isValidTab(this.selectedTab) && tab === this.selectedTab) return;
102+
if (this.selectedTab && tab && this.selectedTab.containedForm === tab.containedForm && this.selectedTab.relationName === tab.relationName){
103+
this.selectedTab = tab;
104+
return; // already selected
105+
}
102106
if (this.selectedTab) {
103107
if (this.selectedTab.containedForm && !this.waitingForServerVisibility[this.selectedTab._id]) {
104108
const formInWait = this.selectedTab._id;

0 commit comments

Comments
 (0)