-
Notifications
You must be signed in to change notification settings - Fork 4.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
material_select does not update display value after selected option has been changed by program #1296
Comments
http://materializecss.com/forms.html Updating/Destroying SelectIf you want to update the items inside the select, just rerun the initialization code from above after editing the original select.
|
It looks nothing changed to re-initialize the select control after select options or value is changed. |
I am facing same problem |
Same issue in firefox we are not re-initializing. |
I am also experiencing the same problem. However, I think I found a solution for this. First set the value default option to empty string. like this in HTML: and then in JS: |
Duplicate of #4562 |
In AngularJS I solved with "track by $index" |
I have create an angular directive to initialize select control:
to create select control in jade:
The issue is that the select control doesn't update the display value when the priority value has been changed in controller. However, the priority value is changed according to the selected option value by mouse or key operation.
Is it possible to have a public method to select value in material_select? So that it's feasible to $watch ng-model value in directive to update the display value by the method.
The text was updated successfully, but these errors were encountered: