Skip to content

Commit 597b822

Browse files
authored
fix(material/chips): enable hydration (#28260)
Removes the `ngSkipHydration` from `mat-chip-listbox` since it seems to work fine in the test app.
1 parent 714eac3 commit 597b822

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/material/chips/chip-listbox.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export const MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR: any = {
7474
'[attr.aria-disabled]': 'disabled.toString()',
7575
'[attr.aria-multiselectable]': 'multiple',
7676
'[attr.aria-orientation]': 'ariaOrientation',
77-
'ngSkipHydration': '',
7877
'[class.mat-mdc-chip-list-disabled]': 'disabled',
7978
'[class.mat-mdc-chip-list-required]': 'required',
8079
'(focus)': 'focus()',

src/universal-app/kitchen-sink/kitchen-sink.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ <h2>Chips</h2>
8585
<mat-basic-chip>Basic Chip 3</mat-basic-chip>
8686
</mat-chip-set>
8787

88-
<mat-chip-listbox>
88+
<mat-chip-listbox multiple>
8989
<mat-chip-option>Extra Small</mat-chip-option>
90-
<mat-chip-option>Small</mat-chip-option>
91-
<mat-chip-option>Medium</mat-chip-option>
90+
<mat-chip-option selected>Small</mat-chip-option>
91+
<mat-chip-option selected disabled>Medium</mat-chip-option>
9292
<mat-chip-option>Large</mat-chip-option>
9393
</mat-chip-listbox>
9494

0 commit comments

Comments
 (0)