Skip to content

Commit ddbc022

Browse files
committed
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 7076f96 commit ddbc022

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/material/autocomplete/autocomplete.ts

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

src/material/menu/menu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ export function MAT_MENU_DEFAULT_OPTIONS_FACTORY(): MatMenuDefaultOptions {
104104
'[attr.aria-label]': 'null',
105105
'[attr.aria-labelledby]': 'null',
106106
'[attr.aria-describedby]': 'null',
107-
'ngSkipHydration': '',
108107
},
109108
animations: [matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems],
110109
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
@@ -233,7 +233,6 @@ const _MatSelectMixinBase = mixinDisableRipple(
233233
'[attr.aria-disabled]': 'disabled.toString()',
234234
'[attr.aria-invalid]': 'errorState',
235235
'[attr.aria-activedescendant]': '_getAriaActiveDescendant()',
236-
'ngSkipHydration': '',
237236
'[class.mat-mdc-select-disabled]': 'disabled',
238237
'[class.mat-mdc-select-invalid]': 'errorState',
239238
'[class.mat-mdc-select-required]': 'required',

0 commit comments

Comments
 (0)