You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
There is a select like this (nothing unusual here):
<selectng-model="model.selectedValue"
ng-options="value.id as value.value for value in modelOptions"><optionvalue="" ng-if="!model.selectedValue">Null</option>
Initially the model is null, so when the page first opens the Null option is selected.
$scope.model={"selectedValue":null};
However, if I then change the selected value to something else, and then back to null by clicking these two buttons
then the Null option is NOT selected - so now the UI is out of sync with the model.
Bug tested with Angular 1.2.22 in IE10 and Chrome 36.
Changing ng-if to ng-show or to ng-if="!$parent.model.selectedValue" fixes the problem in Chrome, but unfortunately in IE10 now I get a different problem - the Null option isn't removed anymore when I select 'Yes'.
The text was updated successfully, but these errors were encountered:
http://plnkr.co/edit/JVMZqnY5Vilek4NxDNGE?p=preview
There is a select like this (nothing unusual here):
Initially the model is null, so when the page first opens the Null option is selected.
However, if I then change the selected value to something else, and then back to null by clicking these two buttons
then the Null option is NOT selected - so now the UI is out of sync with the model.
Bug tested with Angular 1.2.22 in IE10 and Chrome 36.
Changing ng-if to ng-show or to ng-if="!$parent.model.selectedValue" fixes the problem in Chrome, but unfortunately in IE10 now I get a different problem - the Null option isn't removed anymore when I select 'Yes'.
The text was updated successfully, but these errors were encountered: