kendo-react icon indicating copy to clipboard operation
kendo-react copied to clipboard

The touched value is incorrectly set on each onChange / onArrayChange

Open simonssspirit opened this issue 5 years ago • 1 comments

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.

simonssspirit avatar Oct 21 '20 06:10 simonssspirit

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" : "";
  }}

vveesseelliinnaa avatar Feb 12 '25 08:02 vveesseelliinnaa