Skip to content

Commit 74a49f3

Browse files
Merge pull request #4457 from OneCommunityGlobal/SaiKrishna_FixDateSelectionBug
Sai Krishna - Date filter fix for start date and end date
2 parents ed987d0 + 2c88d93 commit 74a49f3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/BMDashboard/UtilizationChart/UtilizationChart.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,16 @@ function UtilizationChart() {
174174
selected={startDate}
175175
onChange={date => setStartDate(date)}
176176
placeholderText="Start Date"
177+
maxDate={endDate || '' || new Date()}
177178
className={styles.datepickerWrapper}
178179
/>
179180

180181
<DatePicker
181182
selected={endDate}
182183
onChange={date => setEndDate(date)}
183184
placeholderText="End Date"
185+
minDate={startDate || ''}
186+
maxDate={new Date()}
184187
className={styles.datepickerWrapper}
185188
/>
186189

0 commit comments

Comments
 (0)