Tab switch default behaviour shifted to correct location

This commit is contained in:
Dean 2023-06-01 14:51:50 +01:00
parent b44a7fb288
commit 3a70426e3e
1 changed files with 4 additions and 4 deletions

View File

@ -36,12 +36,12 @@
selected = $tab.title selected = $tab.title
dispatch("select", thisSelected) dispatch("select", thisSelected)
} }
}
} else { } else {
thisSelected = $tab.title thisSelected = $tab.title
selected = $tab.title selected = $tab.title
dispatch("select", thisSelected) dispatch("select", thisSelected)
} }
}
if ($tab.title !== thisSelected) { if ($tab.title !== thisSelected) {
tab.update(state => { tab.update(state => {
state.title = thisSelected state.title = thisSelected