mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix(boards): not correctly navigating to the newly created board #5211
This commit is contained in:
parent
eeb8faf365
commit
6dc1922fb9
1 changed files with 4 additions and 1 deletions
|
|
@ -65,7 +65,10 @@ export class BoardsComponent {
|
|||
// NOTE: since the index number does not change (the add tab index is at the same index as the newly added tab) we need to do this in two steps
|
||||
const newIndex = (this.boards()?.length || 1) - 1;
|
||||
setTimeout(() => {
|
||||
this.selectedTabIndex.set(newIndex);
|
||||
this.selectedTabIndex.set(newIndex + 1);
|
||||
setTimeout(() => {
|
||||
this.selectedTabIndex.set(newIndex);
|
||||
}, 10);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue