palantir/blueprint

Date Range Input: Time is not updating onHoverChange event

Open

#4,402 opened on 2020年11月8日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
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

  1. Click Start Date Field (so Date Picker opens).
  2. Select preferred date for both start and end fields.
  3. Please Add time in the below boxes for hours, minutes, seconds.
  4. 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)
  5. 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

コントリビューターガイド

Date Range Input: Time is not updating onHoverChange event · palantir/blueprint#4402 | Good First Issue