-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select doesn't accept an array value #7584
Comments
Please see |
That's not the problem. I pass the same array with the same reference. |
Ah my bad! There have been lots of questions like that lately, so I didn't fully look it over. cc @crisbeto |
The assumption has always been that if you're providing an array value, you're probably in |
Fixes not being able to preselect an array if a select is in single selection mode due to an assumption that an array value means that we're in mutliple selection mode. Fixes angular#7584.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Should be able to set an array as the value of a select
What are the steps to reproduce?
https://plnkr.co/edit/lnj292JDLrd2SS0cPzNo?p=preview
In select-overview-example.ts, see lines 19 and 20.
When the preselected value is an array, it doesn't work.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Since, at-least, beta.8. Still in beta.12
Angular 4.4.4
The text was updated successfully, but these errors were encountered: