Skip to content

Commit 3a3530e

Browse files
committed
🐛 fix focus when create a new folder
1 parent 4e32a26 commit 3a3530e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/shared/modals/new-folder/new-folder.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export class NewFolderComponent implements OnInit, OnDestroy {
3838
openModal(): void {
3939
this.modalFolder.nativeElement.classList.add('modal-open');
4040
this.bodyElement.classList.add('modal-open');
41+
this.modalFolder.nativeElement.querySelector('input').focus();
4142
this.modalOpened = true;
4243
}
4344

0 commit comments

Comments
 (0)