We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When selectsRange is true, selecting the date along with time causes a type error. Just selecting the dates does not.
To Reproduce Steps to reproduce the behavior:
const [startDate, setStartDate] = useState<Date | null>(null) const [endDate, setEndDate] = useState<Date | null>(null) const handleChange = ([newStartDate, newEndDate]:[Date, Date]) => { setStartDate(newStartDate); setEndDate(newEndDate); }; return ( <DatePicker selected={startDate} onChange={handleChange} selectsRange startDate={startDate} endDate={endDate} dateFormat="yyyy-MM-dd HH:mm:ss" timeFormat="HH:mm:ss" showTimeSelect /> );
Expected behavior I expected that I could select a range that includes both date and time
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information): None
Additional context None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When selectsRange is true, selecting the date along with time causes a type error. Just selecting the dates does not.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected that I could select a range that includes both date and time
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
None
Additional context
None
The text was updated successfully, but these errors were encountered: