mirror of
https://github.com/eugeny/tabby
synced 2025-12-14 03:35:41 +00:00
Move focus to RenameTabModalComponent onInit
This commit is contained in:
@@ -63,10 +63,6 @@ export class TabHeaderComponent {
|
||||
showRenameTabModal (): void {
|
||||
let modal = this.ngbModal.open(RenameTabModalComponent)
|
||||
modal.componentInstance.value = this.tab.customTitle || this.tab.title
|
||||
setTimeout(() => {
|
||||
const inputElement = modal.componentInstance.input.nativeElement as HTMLInputElement
|
||||
inputElement.select()
|
||||
}, 250)
|
||||
modal.result.then(result => {
|
||||
this.tab.setTitle(result)
|
||||
this.tab.customTitle = result
|
||||
|
||||
Reference in New Issue
Block a user