Render Datetime component with timeConstraints property
For example: { hours: { min: 9 }, minutes: { min: 30 }}
Then rerender component with { hours: { min: 9 }, minutes: { min: 40 }}
Expected Results
timeConstraints should changes
Actual Results
timeConstraints does't apply after rerender component with other timeConstraints property
Other Information (e.g. stacktraces, related issues, suggestions how to fix)
I use two DateTime fields and time in second field should't be less then in a first. First DateTime component update parent state in onChangeStartTime function. this.calculateEndTimeConstraints() calculates timeConstraints. timeConstraints only work on load page (mount component). After update first DateTime field timeConstraints calculates correctly, but they don't apply in the second DateTime component.
Steps to Reproduce
Render Datetime component with timeConstraints property For example:
{ hours: { min: 9 }, minutes: { min: 30 }}
Then rerender component with{ hours: { min: 9 }, minutes: { min: 40 }}
Expected Results
timeConstraints should changes
Actual Results
timeConstraints does't apply after rerender component with other timeConstraints property
Other Information (e.g. stacktraces, related issues, suggestions how to fix)
I use two
DateTime
fields and time in second field should't be less then in a first. First DateTime component update parent state inonChangeStartTime
function.this.calculateEndTimeConstraints()
calculatestimeConstraints
.timeConstraints
only work on load page (mount component). After update firstDateTime
fieldtimeConstraints
calculates correctly, but they don't apply in the secondDateTime
component.