Skip to content

Commit 97f52c0

Browse files
crisbetovivian-hu-zz
authored andcommitted
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.
1 parent 3661abe commit 97f52c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material-examples/select-disabled/select-disabled-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h4>mat-select</h4>
1414
<h4>native html select</h4>
1515
<mat-form-field>
1616
<select matNativeControl placeholder="Choose an option" [disabled]="disableSelect.value">
17-
<option value="" disabled selected></option>
17+
<option value="" selected></option>
1818
<option value="volvo">Volvo</option>
1919
<option value="saab" disabled>Saab</option>
2020
<option value="mercedes">Mercedes</option>

src/material-examples/select-form/select-form-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h4>mat-select</h4>
1111
<h4>native html select</h4>
1212
<mat-form-field>
1313
<select matNativeControl placeholder="Favorite car" [(ngModel)]="selectedCar" name="car">
14-
<option value="" disabled selected></option>
14+
<option value="" selected></option>
1515
<option *ngFor="let car of cars" [value]="car.value">
1616
{{car.viewValue}}
1717
</option>

0 commit comments

Comments
 (0)