Open RaghulXander opened 3 years ago
Hello @adidahiya. I found a small bug and I think it related to this issue. In DateRangeInput, when you change the time inside text input directly, time not changed at TimePicker at all. I think it's because DateRange at shouldComponentUpdate here checks only day equality as I see here here.
I can create a new issue if it's not related.
UPD
As a solution a suggest adding a new argument precision
to areRangesEqual
method, which will allow us to use it for more correct date range validation.
Environment
Code Sandbox
Actually the bug can be visible in the documentation itself so adding Screenshot of it here
Steps to reproduce
Enable Time Precision with minute or seconds
Actual behavior
As we can clearly see the time is not changing and stays still with 12:00 during hovering of dates
Expected behavior
We should get the time from the
value
and update the time too when we hover Defaulting to 12:00 and changing immediately back to user selected time causes confusionPossible solution
DateRangePicker props and callback function should be updated with props time i guess