goetzrobin / spartan

Cutting-edge tools powering Angular full-stack development.
https://spartan.ng
MIT License
1.35k stars 143 forks source link

select: initial value is not set when number, initial value of multiple is erased if additional values are selected #237

Closed elite-benni closed 6 months ago

elite-benni commented 6 months ago

Please provide the environment you discovered this bug in.

in the docs page, when reviewing the change for using the select in the data-table preview.

Which area/package is the issue in?

select

Description

1) The value bound to [(ngModel)] is not displayed correctly in the control.

2) When multiple is true and a value is provided via ngModel When then addtional option is selected, the first options are not checked anymore. In this example, 1,3 are preselected by ngModel and 4 was clicked. image

Please provide the exception or error you saw

1) the value was not visible, but the placeholder is shown.

2) see image

Other information

No response

I would be willing to submit a PR to fix this issue