Ticket #347 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Updating the user value when there is a validation error can be confusing

Reported by: jgou Owned by: freya
Priority: major Milestone: 0.4
Component: modules/kauri-forms Version:
Keywords: Cc: kauri-discuss@…

Description (last modified by jgou) (diff)

The Control.setValue function always ends with writing the user value. However when the control state is invalid, this can be confusing for the end user.

A good example is with integer fields. When the user types 5.3 in an integer input control, the isInt validator will mark the control as invalid. Writing the user value however will cause the displayed value to be 5, so you get an input field with value 5 with a validation error "not a valid integer" next to it.
And even worse, if you then want to input 5, you first have to clear it (or type in another value) because the validation error remains otherwise.

Change History

comment:1 Changed 3 years ago by jgou

  • Description modified (diff)

comment:2 Changed 3 years ago by freya

  • Status changed from new to closed
  • Resolution set to fixed

(In [1605]) fixes #347 : only remove the trailing zeros, and not everything behind the decimal separator

Note: See TracTickets for help on using tickets.