Skip to content

Commit bf20426

Browse files
authored
docs(material-angular-io): fix clearing filter doesnt reset type filter (angular#30437)
fixes upon resetting the filters type filter value persists in component styling tab
1 parent 5d3f43c commit bf20426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

material.angular.io/src/app/pages/component-viewer/token-table.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<mat-form-field subscriptSizing="dynamic" appearance="outline">
1212
<mat-label>Filter by type</mat-label>
13-
<mat-select (selectionChange)="typeFilter.set($event.value)">
13+
<mat-select [value]="typeFilter()" (selectionChange)="typeFilter.set($event.value)">
1414
@for (type of types; track $index) {
1515
<mat-option [value]="type">{{type | titlecase}}</mat-option>
1616
}

0 commit comments

Comments
 (0)