Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1280

Autocomplete onchange event gets fired twice when selecting with mouse click

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-final
    • Fix Version/s: 1.3.3
    • Component/s: wicket-extensions
    • Labels:
      None
    • Environment:
      Firefox, Opera

      Description

      When selecting on of the choices of the autocomplete field per mouse click the onchange event fires twice.
      The first onchange event is fired by the browser in response to the mouseclick. The second one is fired by the autocomplete.js.

      If you hook an onchange event listener to the ac (as in the wicket example) field it gets called twice per selection. The first time the text entered by the user
      gets submitted. The second time the selected choice is submitted.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ckuehne Conny Kuehne
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: