From 0e6886d00a70d4e522b604da90de0afbd751d9af Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 22 Dec 2018 11:15:40 +0100 Subject: [PATCH] fixed args field focus --- .../src/components/editProfileModal.component.pug | 2 +- .../src/components/editProfileModal.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/terminus-terminal/src/components/editProfileModal.component.pug b/terminus-terminal/src/components/editProfileModal.component.pug index c8eb4c49..d89100cf 100644 --- a/terminus-terminal/src/components/editProfileModal.component.pug +++ b/terminus-terminal/src/components/editProfileModal.component.pug @@ -17,7 +17,7 @@ .form-group label Arguments .input-group( - *ngFor='let arg of profile.sessionOptions.args; index as i', + *ngFor='let arg of profile.sessionOptions.args; index as i; trackBy: trackByIndex', ) input.form-control( type='text', diff --git a/terminus-terminal/src/components/editProfileModal.component.ts b/terminus-terminal/src/components/editProfileModal.component.ts index 1d98d9f3..8d395c64 100644 --- a/terminus-terminal/src/components/editProfileModal.component.ts +++ b/terminus-terminal/src/components/editProfileModal.component.ts @@ -25,4 +25,8 @@ export class EditProfileModalComponent { cancel () { this.modalInstance.dismiss() } + + trackByIndex (index) { + return index + } }