mirror of
https://github.com/Eugeny/tabby
synced 2024-11-14 08:57:21 +00:00
.
This commit is contained in:
parent
26ae1e3335
commit
deadbed74f
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ export class AppComponent {
|
|||
}
|
||||
|
||||
selectTab (tab) {
|
||||
this.lastTabIndex = this.tabs.indexOf(this.activeTab)
|
||||
if (this.tabs.includes(this.activeTab)) {
|
||||
this.lastTabIndex = this.tabs.indexOf(this.activeTab)
|
||||
} else {
|
||||
this.lastTabIndex = null
|
||||
}
|
||||
this.activeTab = tab
|
||||
setImmediate(() => {
|
||||
this.elementRef.nativeElement.querySelector(':scope .tab.active iframe').focus()
|
||||
|
|
Loading…
Reference in a new issue