mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43:09 +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
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user