When I add a minimum or maximum value to the date picker, the control allows out-of-range dates to be entered until the dateInput option is set to true. At that point, any out-of-range date will be set to either "min" or "max." The change event will not be called for that change.
This would be perfect:
- The default behavior is to set the minimum or maximum value when the date input value is out of range. It would be nice if this behavior didn't depend on the dateInput option.T
- Trigger a change event when the control itself sets the minimum or maximum value.
- Add an option to change the behavior to generate an error on the control when an out-of-range value is entered.
For me, it feels more natural to invalidate the control when an invalid date is entered. This allows me to block the form from being submitted. Setting it to "min" or "max" can bypass end-user oversight, potentially resulting in incorrect date submission.
Note: In some situations, the default behavior of setting it to "min" or "max" can also be useful... but with a change event trigger however!