mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 21:27:52 +00:00
[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:
parent
8c1b70f085
commit
acdd35cf65
@ -20,11 +20,11 @@
|
||||
at runtime from the About dialog for additional information.
|
||||
-->
|
||||
<div class='form-control select'>
|
||||
<select
|
||||
ng-model="ngModel[field]"
|
||||
ng-options="opt.value as opt.name for opt in options"
|
||||
ng-required="ngRequired"
|
||||
name="mctControl">
|
||||
<option value="" ng-if="!ngModel[field]">- Select One -</option>
|
||||
</select>
|
||||
<select
|
||||
ng-model="ngModel[field]"
|
||||
ng-options="opt.value as opt.name for opt in options"
|
||||
ng-required="ngRequired"
|
||||
name="mctControl">
|
||||
<option value="" ng-show="!ngModel[field]">- Select One -</option>
|
||||
</select>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user