1

this is a extended question (so not a duplicate) to this:

Angular2 Dynamic input field lose focus when input changes

I made the angular tutorial: https://angular.io/guide/dynamic-form#dynamic-forms

And copied the classes as they are in the plunker example.

The Angular Tut uses native arrays and it dont lose focus in the plunker example.

But my project lose focus onChange. What did I wrong in compare to angular? And why their example dont lose focus even if they use native array and no "TrackBy" work around?

Stanislav Kvitash
  • 4,614
  • 18
  • 29
Gregor Sklorz
  • 1,645
  • 2
  • 19
  • 27
  • have look into this https://stackoverflow.com/questions/42861734/how-to-set-autofocus-in-angular-or-angular-2-not-angularjs/42864040#42864040 – Aniruddha Das Aug 31 '17 at 15:20
  • ***What did I wrong in compare to angular?*** ... well we cannot know, unless you show your code ;) Best would be to recreate the issue in a plunker. – AT82 Sep 02 '17 at 06:39
  • Guess so :) I try to get it in time. – Gregor Sklorz Sep 04 '17 at 11:18

0 Answers0