Open morela opened 1 year ago
This one has me torn, because it appears that timePickerProps are passed down to each timePicker, hence minTime is also holding for the right time picker - yet, I cannot think of a use case where this would be useful. I am considering ensuring minTime is only used on the left time picker and maxTime only on the right.
@tinopetros @adidahiya Could also be added possibility to disable seperately left or right time input? Right now we can disable only both.
See my comment here: https://github.com/palantir/blueprint/issues/3509#issuecomment-503276758
I think the API should be changed so that
timePickerProps.minTime
andtimePickerProps.maxTime
are ignored (deprecated) in favor of the time attached tominDate
andmaxDate
.
Also related: https://github.com/palantir/blueprint/issues/5502
@bkuzminski that sounds like a separate request, can you file a new issue for it?
Code Sandbox
https://codesandbox.io/s/blueprintjs-block-time-in-past-gt1xb9?file=/src/index.js
Steps to reproduce
Actual behavior
When I set minTime then it will be set for everyday. When I set minDate then it doesn't have impact on time inputs.
Expected behavior
I want to set date in future without impact of minTime or maxTime I want to set different minTime and maxTime seperatelly for startTime and endTime