Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37205

Validation method called with partial value when using auto-completion

XMLWordPrintable

      When using auto-completion and validation together on a textbox, clicking a value to select it in the drop-down list of values triggers a change event on the input with the value typed by the user, not the selected one. Therefore the validation method is called with a partial value, which most of the time will be wrong since the correct value would probably be the selected one (that depends on your business logic of course).

      For example, if I type "ho", select "home" in the list, my check method is called with "ho" as value instead of "home", and return a FormValidation error, where "home" is correct.

      I saw that someone has the problem here, but he's never got any answer.

            Unassigned Unassigned
            gdelory Guillaume DELORY
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: