[Calendar] onChange is not called anymore when date is changed without changing hours #1603
Labels
lang/javascript
Anything involving JavaScript
state/awaiting-investigation
Anything which needs more investigation
type/bug
Any issue which is a bug or PR which fixes a bug
Bug Report
The change made in #1329 for bug issue #1460 has create regression in our apps. Before this pull, onChange was called at date selection and hour selection. Now its only be called after hour selection.
I understand why it's have been changed, it's definitely more logical to do it that way to avoid multiple UI refresh or data fetch.
But there is a scenario which create a problem (described below).
Steps to reproduce
Expected result
In case of popup focus out, if at least one date have been picked even without picking hour, onChange should be called too.
Actual result
Input have a new date but event onChange was not fired.
Testcase
https://jsfiddle.net/5hcjvk3d/1/
Version
2.8.6
The text was updated successfully, but these errors were encountered: