kendo-react
kendo-react copied to clipboard
The touched value is incorrectly set on each onChange / onArrayChange
The touched value is incorrectly set on each onChange / onArrayChange.
This prevents validations that rely on touched to work as expected as it shows validation on each change instead of on each blur.
Reported again in Ticket ID: 1678393
<Field
name={dashboards`} // Store in dashboards array
component={FormDashboardList}
validationMessage="Dashboard is required"
validator={(value: DashboardDto[]) => {
console.log(">>> d]ashboards", value);
return value.length == 0 ? "Dashboard is required" : "";
}}