I created a custom component which I call to generate ng-select dropdowns.
However now it occured a problem which I'm not able to fix. When I define initial selected value(s) it shows on the dropdown, but the checkbox stays selectable. This might cause that the object ends up twice in the selected list.
Please see my example on Stackblitz | You'll see that person with id 2 is preselected, but checkbox is unchecked (and that same person can be selected another time, so it is twice in the list)
To create my Component I used the examples from ng-select: example example-source
How do I correctly map the initial selected objects, that the checkbox from selected objects is checked?