palantir/blueprint
Modifying the time doesn't show up on the timepicker in DateRangePicker
开放
#5,502 创建于 2022年8月22日
P2Package: datetimeType: bughelp wanted
仓库指标
- 星标
- (20,263 个星标)
- PR 合并指标
- (平均合并 43天 10小时) (30 天内合并 27 个 PR)
描述
Environment
- Package version(s): 4.3.4
- Operating System: MacOS Monterey
- Browser name and version: Firefox 103.0.2
Code Sandbox
Link to a minimal repro: https://codesandbox.io/s/blueprint-sandbox-forked-gb14b7
Steps to reproduce
- Select two dates in the daterangepicker
Actual behavior
Modifying the endTime (from 00:00 to 23:59) doesn't show the modified end time in the time picker. (I modify the time in the onChange)
Expected behavior
When I change the time on the endDate value, it should update on the DateRangePicker end time
Possible solution
It looks like it doesn't update the startTime or endTime in the code when the props change, only on the construction. Modify it so it does do that.