Skip to content

Commit c8f0a3f

Browse files
committed
fix(date-range-picker): No need to use the resolved displayFormat.
1 parent 91b7fff commit c8f0a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/date-range-picker/date-range-picker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ export default class IgcDateRangePickerComponent extends FormAssociatedRequiredM
894894

895895
const { formatDisplayDate, predefinedToDateDisplayFormat } = DateTimeUtil;
896896
const { start, end } = this.value;
897-
const displayFormat = predefinedToDateDisplayFormat(this.displayFormat);
897+
const displayFormat = predefinedToDateDisplayFormat(this._displayFormat);
898898

899899
const startValue = formatDisplayDate(start, this.locale, displayFormat);
900900
const endValue = formatDisplayDate(end, this.locale, displayFormat);

0 commit comments

Comments
 (0)