We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 066f06f commit 47b0985Copy full SHA for 47b0985
src/Shared/Components/DatePicker/DateTimePicker.tsx
@@ -68,7 +68,7 @@ const DateTimePicker = ({
68
69
const today = moment()
70
// Function to disable dates including today and all past dates
71
- const isDayBlocked = (day) => !day.isAfter(today)
+ const isDayBlocked = (day) => isTodayBlocked && !day.isAfter(today)
72
73
return (
74
<div>
@@ -94,7 +94,7 @@ const DateTimePicker = ({
94
inputIconPosition="after"
95
displayFormat={DATE_TIME_FORMATS.DD_MMM_YYYY}
96
data-testid={dataTestidForDate}
97
- isDayBlocked={isTodayBlocked ? isDayBlocked : undefined}
+ isDayBlocked={isDayBlocked}
98
/>
99
{!hideTimeSelect && (
100
<div className="dc__no-shrink">
0 commit comments