mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 05:37:53 +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.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<div class='form-control select'>
|
<div class='form-control select'>
|
||||||
<select
|
<select
|
||||||
ng-model="ngModel[field]"
|
ng-model="ngModel[field]"
|
||||||
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>
|
||||||
|
Loading…
Reference in New Issue
Block a user