This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
select: multiple attribute only checks for existence but docs indicate that it evaluates true/false #3068
Labels
has: Pull Request
A PR has been created to address this issue
P4: minor
Minor issues. May not be fixed without community contributions.
resolution: fixed
type: docs
Milestone
Comments
+1 |
1 similar comment
+1 |
+1 |
No news? |
Splaktar
changed the title
multiple attribute for md-select directive can't be set from scope
select: multiple attribute only checks for existence but docs indicate that it evaluates true/false
Jun 6, 2018
Splaktar
added
the
P4: minor
Minor issues. May not be fixed without community contributions.
label
Jun 6, 2018
Re-opening this one as the CodePen is still valid and this issue still exists. |
This seems to be partially related to angular/angular.js@d87fa00 where binding to |
There is a lot more discussion related to that in: |
The docs are going to be updated to state:
Any value that is passed into the |
Splaktar
added a commit
that referenced
this issue
Jun 6, 2018
fix syntax ordering error with `md-no-asterisk` docs remove instances of `multiple="multiple"` from tests update test to check for non-existence of multiple rather than value add test to check for existence of multiple Closes #3068
3 tasks
jelbourn
pushed a commit
that referenced
this issue
Jun 22, 2018
fix syntax ordering error with `md-no-asterisk` docs remove instances of `multiple="multiple"` from tests update test to check for non-existence of multiple rather than value add test to check for existence of multiple Closes #3068
Splaktar
added a commit
that referenced
this issue
Jul 31, 2018
fix syntax ordering error with `md-no-asterisk` docs remove instances of `multiple="multiple"` from tests update test to check for non-existence of multiple rather than value add test to check for existence of multiple Closes #3068
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
has: Pull Request
A PR has been created to address this issue
P4: minor
Minor issues. May not be fixed without community contributions.
resolution: fixed
type: docs
If I want to tell wether a md-select should be multiple from a scope key, I must do this :
Because all those lines have the same behavior, they set initialize the select as multiple :
In the source code of md-select directive, I can see this LoC :
https://github.com/angular/material/blob/master/src/components/select/select.js#L387
I can understand why all 4 lines have the same behavior.
So I tried to use ng-multiple and the select started to work correctly... in appearance only : the model is now all messed up.
Here is a codepen where you can see select behavior and the associated model : http://codepen.io/myagoo/pen/OVWGqz
The text was updated successfully, but these errors were encountered: