[Forms] Fix select control

Use ng-show instead of ng-if to suppress the
'Select One' option after user has chosen something
in a select box; the latter appears to be incompatible
with Angular 1.4.x. nasa/openmct#113
This commit is contained in:
Victor Woeltjen 2015-09-16 12:23:24 -07:00
parent 8c1b70f085
commit acdd35cf65

View File

@ -25,6 +25,6 @@
ng-options="opt.value as opt.name for opt in options" ng-options="opt.value as opt.name for opt in options"
ng-required="ngRequired" ng-required="ngRequired"
name="mctControl"> name="mctControl">
<option value="" ng-if="!ngModel[field]">- Select One -</option> <option value="" ng-show="!ngModel[field]">- Select One -</option>
</select> </select>
</div> </div>