palantir/blueprint
在 GitHub 查看Date Range Input: Time is not updating onHoverChange event
Open
#4,402 建立於 2020年11月8日
P3Package: datetimeType: bughelp wanted
描述
Environment
- Package version(s): 3.30.1
- Operating System: MAc OS Catlina
- Browser name and version: Chrome latest
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
- Click Start Date Field (so Date Picker opens).
- Select preferred date for both start and end fields.
- Please Add time in the below boxes for hours, minutes, seconds.
- Now Hover the different date in Date Picker and you can see start date in input field changes as per the hover state but the time value will be the default time itself (12:00)
- The same happens in end date field too.
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 confusion
Possible solution
DateRangePicker props and callback function should be updated with props time i guess