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

Validation method called with partial value when using auto-completion

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated: