Skip to content

Commit 1c2d1b7

Browse files
authored
fix(multiple): enable hydration in autocomplete, menu and select (#28343)
Hydration was disabled for `mat-autocomplete`, `mat-menu` and `mat-select`, even though it currently seems to work. These changes enable it to allow for better initial performance.
1 parent 7a91d46 commit 1c2d1b7

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

src/material/autocomplete/autocomplete.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export function MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY(): MatAutocompleteDefau
115115
exportAs: 'matAutocomplete',
116116
host: {
117117
'class': 'mat-mdc-autocomplete',
118-
'ngSkipHydration': '',
119118
},
120119
providers: [{provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatAutocomplete}],
121120
animations: [panelAnimation],

src/material/menu/menu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ export function MAT_MENU_DEFAULT_OPTIONS_FACTORY(): MatMenuDefaultOptions {
105105
'[attr.aria-label]': 'null',
106106
'[attr.aria-labelledby]': 'null',
107107
'[attr.aria-describedby]': 'null',
108-
'ngSkipHydration': '',
109108
},
110109
animations: [matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems],
111110
providers: [{provide: MAT_MENU_PANEL, useExisting: MatMenu}],

src/material/select/select.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ export class MatSelectChange {
190190
'[attr.aria-disabled]': 'disabled.toString()',
191191
'[attr.aria-invalid]': 'errorState',
192192
'[attr.aria-activedescendant]': '_getAriaActiveDescendant()',
193-
'ngSkipHydration': '',
194193
'[class.mat-mdc-select-disabled]': 'disabled',
195194
'[class.mat-mdc-select-invalid]': 'errorState',
196195
'[class.mat-mdc-select-required]': 'required',

tools/public_api_guard/material/select.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,29 @@ export class MatSelect implements AfterContentInit, OnChanges, OnDestroy, OnInit
126126
get multiple(): boolean;
127127
set multiple(value: boolean);
128128
// (undocumented)
129-
static ngAcceptInputType_disabled: unknown;
129+
static ngAcceptInputType_disabled:
130+
/** Whether or not the overlay panel is open. */
131+
unknown;
130132
// (undocumented)
131-
static ngAcceptInputType_disableOptionCentering: unknown;
133+
static ngAcceptInputType_disableOptionCentering:
134+
/** Whether or not the overlay panel is open. */
135+
unknown;
132136
// (undocumented)
133-
static ngAcceptInputType_disableRipple: unknown;
137+
static ngAcceptInputType_disableRipple:
138+
/** Whether or not the overlay panel is open. */
139+
unknown;
134140
// (undocumented)
135-
static ngAcceptInputType_hideSingleSelectionIndicator: unknown;
141+
static ngAcceptInputType_hideSingleSelectionIndicator:
142+
/** Whether or not the overlay panel is open. */
143+
unknown;
136144
// (undocumented)
137-
static ngAcceptInputType_multiple: unknown;
145+
static ngAcceptInputType_multiple:
146+
/** Whether or not the overlay panel is open. */
147+
unknown;
138148
// (undocumented)
139-
static ngAcceptInputType_required: unknown;
149+
static ngAcceptInputType_required:
150+
/** Whether or not the overlay panel is open. */
151+
unknown;
140152
// (undocumented)
141153
static ngAcceptInputType_tabIndex: unknown;
142154
// (undocumented)

0 commit comments

Comments
 (0)