Only calculate min/max from the current date
This commit is contained in:
@@ -29,8 +29,8 @@ export const ForecastDatePicker = function ({
|
||||
<input
|
||||
type="date"
|
||||
value={formatDate(dateTime)}
|
||||
min={formatDate(minDate(dateTime))}
|
||||
max={formatDate(maxDate(dateTime))}
|
||||
min={formatDate(minDate(new Date()))}
|
||||
max={formatDate(maxDate(new Date()))}
|
||||
onChange={(e) => onChange(e.target.valueAsDate)}
|
||||
/>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user