clear ng-model on md-select does not work when multiple
mdSelect does not refresh view value when multiple is true and value is set to undefined.
Here is an example pen forked from validation demo of mdSelect directive http://codepen.io/myagoo/pen/jPMOwZ
+1
+1
Any workaround while waiting for this to be fixed ? This bug is really annoying, we use md-select to build a generic selector abstraction in our application and we are unable to reset them >< Also, I updated the associated codepen as it seemed everything worked fine.
i use ng-if to recreate the md-select when i click on the reset button as a temporary workaround
<md-select ng-if='recreateSelect'>
$scope.recreateSelect = true;
$scope.reset = function() {
$scope.recreateSelect = false;
$timeout(function() {
$scope.recreateSelect = true;
}, 100);
@sckoh Good workaround ! I prefer to use a timeout 0 to avoid the blink effect.
@sckoh Thank you! Exactly the problem I was facing. Great solution.
When the fix will be available for this issue ?