Description
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
https://stackblitz.com/edit/angular-puxzxe?file=src%2Fapp%2Flist-selection-example.html
Steps to reproduce:
- click add and select new
Expected Behavior
all options checked
Actual Behavior
only last option checked, others be unchecked (don't understand why)
Detail:
I'm trying to do a select options, and it able to "add and select new option".
the final look is something like below.
above stackblitz is minimized reproduction.
I found that, it only happens when "trackBy" + [value], if i remove trackBy then working good.
or if i don't use [value] also working good
Environment
Angular CLI: 10.0.0
Node: 12.18.0
OS: win32 x64
Angular: 10.0.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
@angular-devkit/architect 0.1000.0
@angular-devkit/build-angular 0.1000.0
@angular-devkit/build-ng-packagr 0.1000.0
@angular-devkit/build-optimizer 0.1000.0
@angular-devkit/build-webpack 0.1000.0
@angular-devkit/core 10.0.0
@angular-devkit/schematics 10.0.0
@angular/cdk 10.0.1
@angular/cli 10.0.0
@angular/material 10.0.1
@angular/material-moment-adapter 10.0.1
@ngtools/webpack 10.0.0
@schematics/angular 10.0.0
@schematics/update 0.1000.0
ng-packagr 10.0.0
rxjs 6.5.5
typescript 3.9.5
webpack 4.43.0