mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(form-field): native select reset values not working in examples (#14236)
On a couple of the examples the reset option was marked as `disabled` which means that people aren't able to reset the value. Fixes #14030.
This commit is contained in:
committed by
vivian-hu
parent
3661abe061
commit
97f52c0924
@@ -14,7 +14,7 @@
|
||||
<h4>native html select</h4>
|
||||
<mat-form-field>
|
||||
<select matNativeControl placeholder="Choose an option" [disabled]="disableSelect.value">
|
||||
<option value="" disabled selected></option>
|
||||
<option value="" selected></option>
|
||||
<option value="volvo">Volvo</option>
|
||||
<option value="saab" disabled>Saab</option>
|
||||
<option value="mercedes">Mercedes</option>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<h4>native html select</h4>
|
||||
<mat-form-field>
|
||||
<select matNativeControl placeholder="Favorite car" [(ngModel)]="selectedCar" name="car">
|
||||
<option value="" disabled selected></option>
|
||||
<option value="" selected></option>
|
||||
<option *ngFor="let car of cars" [value]="car.value">
|
||||
{{car.viewValue}}
|
||||
</option>
|
||||
|
||||
Reference in New Issue
Block a user