palantir/blueprint

DateRangeInput shows wrong time in input field on mouseover

开放

#4,239 创建于 2020年7月23日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (2,167 个派生)batch import
P2Package: datetimeType: bughelp wanted

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (平均合并 43天 10小时) (30 天内合并 27 个 PR)

描述

Environment

  • Package version(s): 3.18.4
  • Operating System: macOS 10.15
  • Browser name and version: Chrome 84

Code Sandbox

This is reproducible in the official documentation for the component.

Steps to reproduce

  1. Enable the time picker on a DateRangeInput (in the docs, toggle "Enable time picker")
  2. Change the date format to anything that shows the time (in the docs, select "YYYY-MM-DD HH:mm:ss (moment)")
  3. Focus one of the input fields
  4. Hover over any date

Actual behavior

Regardless of what is entered in the time picker, the input field shows 12:00 PM on hover. After you click, the entered time is applied to the input field, as expected.

image

Expected behavior

I would expect what is shown on hover to match what will be applied when you click. Specifically, I would expect the selected time to be respected.

贡献者指南