This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-select/ng-options causes underlying data to be changed, when assiging properties on ng-model #10869
Closed
Description
Hello!
we encountered some odd behaviour, when using ng-select and changing the ng-model not through a selection.
http://jsfiddle.net/r5xanz0s/1/
There are 2 different scenarios (starting after a reload):
- When assigning new properties for ng-model (via "Assign 'someName3' properties only") the ng-select is not updated at all.
- When selecting 'someName2' and then assigning new properties for ng-model (via "Assign 'someName3' properties only") the entry for 'someName2' within the select is changed to data from 'someName3'. This results in a duplicate entry.
This behaviour does not occur, when assigning a new object to ng-model.
Any ideas?
Best,
Gregor