Skip to content

Commit fe2e365

Browse files
authored
Merge pull request #43 from NoahMLoomis/bugfix-dates-not-highlighted-correctly
Fixed bug where the displayFormat was affecting highlighted dates
2 parents cc18f59 + 4432330 commit fe2e365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Datepicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ const Datepicker: React.FC<Props> = ({
215215
validDate && (startDate.isSame(endDate) || startDate.isBefore(endDate));
216216
if (condition) {
217217
setPeriod({
218-
start: formatDate(startDate, displayFormat),
219-
end: formatDate(endDate, displayFormat)
218+
start: formatDate(startDate),
219+
end: formatDate(endDate)
220220
});
221221
setInputText(
222222
`${formatDate(startDate, displayFormat)}${

0 commit comments

Comments
 (0)