If a DatePicker input is set to not required and a user enters an incomplete date like 05/day/2018, the component does not recognize the value and the input is null. This behaviour is ok, the problem is, that no validation is triggered. In such a case, a validation error should be thrown such as "incomplete date" or "invalid", but nothing happens. To allow the form validation of an incomplete date, such a validation is needed.
Hello,
We are declining this request due to low customer demand.
Regards,
Dimiter Topalov
Progress Telerik
if
(stringValue.match(/[A-Za-z]/)) {
// value contains a letter
if
(stringValue ===
'month/day/year'
) {
// value matches the empty placeholder
// no value entered
return
;
}
// incomplete value entered
form.controls[
'birthDate'
].setErrors({
'incomplete'
:
true
});
}