Skip to content

Commit

Permalink
fix(material/chips): enable hydration (#28260)
Browse files Browse the repository at this point in the history
Removes the `ngSkipHydration` from `mat-chip-listbox` since it seems to work fine in the test app.

(cherry picked from commit 597b822)
  • Loading branch information
crisbeto committed Dec 11, 2023
1 parent 9596dcc commit 7b183b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/material/chips/chip-listbox.ts
Expand Up @@ -75,7 +75,6 @@ export const MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR: any = {
'[attr.aria-disabled]': 'disabled.toString()',
'[attr.aria-multiselectable]': 'multiple',
'[attr.aria-orientation]': 'ariaOrientation',
'ngSkipHydration': '',
'[class.mat-mdc-chip-list-disabled]': 'disabled',
'[class.mat-mdc-chip-list-required]': 'required',
'(focus)': 'focus()',
Expand Down
6 changes: 3 additions & 3 deletions src/universal-app/kitchen-sink/kitchen-sink.html
Expand Up @@ -85,10 +85,10 @@ <h2>Chips</h2>
<mat-basic-chip>Basic Chip 3</mat-basic-chip>
</mat-chip-set>

<mat-chip-listbox>
<mat-chip-listbox multiple>
<mat-chip-option>Extra Small</mat-chip-option>
<mat-chip-option>Small</mat-chip-option>
<mat-chip-option>Medium</mat-chip-option>
<mat-chip-option selected>Small</mat-chip-option>
<mat-chip-option selected disabled>Medium</mat-chip-option>
<mat-chip-option>Large</mat-chip-option>
</mat-chip-listbox>

Expand Down

0 comments on commit 7b183b2

Please sign in to comment.