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

Input field with autocomplete behavior does not submit the form via enter key in some cases

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.3
    • Component/s: wicket-extensions
    • Labels:
      None
    • Environment:
      Debian

      Description

      This is related to WICKET-2 but wasn't fixed in that bug:
      When you enter nothing in an input field with autocomplete and press enter, type something that doesn't give results or press escape when the autocomplete box has appeared, you have to press enter twice to submit the form.

      The solution is quite simple: remove line 219 from wicket-autocomplete.js:
      hidingAutocomplete=1;

      This variable was introduced to keep enter from submitting, but by setting it here always to 1, enter is blocked in the above cases.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              albert.brand Albert Brand
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: