goetzrobin / spartan

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

fix(select): allow for null/undefined option #311

Closed goetzrobin closed 2 weeks ago

goetzrobin commented 3 weeks ago

currently there is no way to have a null/undefined value as part of our options. we should allow and display the correct option and therefore, we are only resetting the selected options to an empty string and the value to null if there isn't an actual option providing either of them.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

Which package are you modifying?

What is the current behavior?

Closes #

What is the new behavior?

Does this PR introduce a breaking change?

Other information