remove automatic focus on title in document-detail view

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
GruberViktor 2022-03-11 20:54:24 +01:00 committed by GitHub
parent d02a0b2213
commit 63aafd3133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,14 +299,12 @@ export class DocumentDetailComponent implements OnInit, OnDestroy, DirtyComponen
nextDoc() {
this.documentListViewService.getNext(this.document.id).subscribe((nextDocId: number) => {
this.router.navigate(['documents', nextDocId])
this.titleInput?.focus()
})
}
previousDoc () {
this.documentListViewService.getPrevious(this.document.id).subscribe((prevDocId: number) => {
this.router.navigate(['documents', prevDocId])
this.titleInput?.focus()
})
}