Browse Source

fixed args field focus

Eugene Pankov 7 years ago
parent
commit
0e6886d00a

+ 1 - 1
terminus-terminal/src/components/editProfileModal.component.pug

@@ -17,7 +17,7 @@
     .form-group
     .form-group
         label Arguments
         label Arguments
         .input-group(
         .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(
             input.form-control(
                 type='text', 
                 type='text', 

+ 4 - 0
terminus-terminal/src/components/editProfileModal.component.ts

@@ -25,4 +25,8 @@ export class EditProfileModalComponent {
     cancel () {
     cancel () {
         this.modalInstance.dismiss()
         this.modalInstance.dismiss()
     }
     }
+
+    trackByIndex (index) {
+        return index
+    }
 }
 }