palantir/blueprint
GitHub で見るWrong maxTime displayed in DateRangeInput with timePickerProps
Open
#3,509 opened on 2019年5月1日
Domain: APIP2Package: datetimeType: bughelp wanted
説明
Environment
- Package version(s):
@blueprintjs/core:3.15.1@blueprintjs/datetime:3.9.0react:16.8.6 - Browser and OS versions: Google Chrome 74 Mozilla Firefox 66 Linux Mint 18.3
https://codesandbox.io/s/m7n7mvvoyy
Steps to reproduce
- In a
DateRangeInputset theminDateandmaxDateand use the sameminDateandmaxDateto supplyminTimeandmaxTime(respectively) in saidDateRangeInput'stimePickerProps. - Open the
DateRangePickerby focusing in the input box.
Actual behavior
Notice that the times at the bottom of the DateRangePicker popover both contain the time taken from the minTime prop supplied. The time from the maxTime prop doesn't get applied.
Expected behavior
The time input on the left should contain the time extracted from the supplied minTime prop and the time input on the right should contain the time extracted from the supplied maxTime prop.