diff --git a/src/material/datepicker/date-range-input.ts b/src/material/datepicker/date-range-input.ts index 9110ffa5ab78..e5094061a4de 100644 --- a/src/material/datepicker/date-range-input.ts +++ b/src/material/datepicker/date-range-input.ts @@ -256,6 +256,12 @@ export class MatDateRangeInput /** Emits when the input's state has changed. */ readonly stateChanges = new Subject(); + /** + * Disable the automatic labeling to avoid issues like #27241. + * @docs-private + */ + readonly disableAutomaticLabeling = true; + constructor( private _changeDetectorRef: ChangeDetectorRef, private _elementRef: ElementRef, diff --git a/src/material/form-field/form-field-control.ts b/src/material/form-field/form-field-control.ts index 1bb06781822b..0657df71c90a 100644 --- a/src/material/form-field/form-field-control.ts +++ b/src/material/form-field/form-field-control.ts @@ -68,6 +68,13 @@ export abstract class MatFormFieldControl { */ readonly userAriaDescribedBy?: string; + /** + * Whether to automatically assign the ID of the form field as the `for` attribute + * on the `