Skip to content

Commit ac3e6eb

Browse files
committed
refactor(material/datepicker): removes '-' for proper id recognition
Updates previous fix to remove '-' from the comparison date labels to allow proper id recognition for the aria-describedby. Fixes b/195600299
1 parent cd4c189 commit ac3e6eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/datepicker/calendar-body.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export class MatCalendarBody<D = any> implements OnChanges, OnDestroy, AfterView
482482

483483
if (this.comparisonStart !== null && this.comparisonEnd !== null) {
484484
if (value === this.comparisonStart && value === this.comparisonEnd) {
485-
return `${this._comparisonStartDateLabelId}-${this._comparisonEndDateLabelId}`;
485+
return `${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;
486486
} else if (value === this.comparisonStart) {
487487
return this._comparisonStartDateLabelId;
488488
} else if (value === this.comparisonEnd) {

0 commit comments

Comments
 (0)