Pressing Enter key in Alloy autoComplete, inputDate, and inputTime instant-ajax use-cases causes full page form submission

Description

Steps to reproduce:

  1. Deploy the Alloy Showcase and navigate to the autoComplete "Instant Ajax".

  2. Type "co" into the input text box.

  3. Verify that the "Compatible" option is visible and selected.

  4. Press the down arrow key so that no option is selected.

  5. Press Enter.

If the bug still exists, a full page form submission (non-Ajax) will occur.

If the bug is fixed, an Ajax form submission will occur.

Environment

None

Activity

Show:

Kyle StiemannSeptember 26, 2018 at 1:12 PM

This behavior is by design (h:inputText behaves the same way). The solution is add an Ajaxified submit button for the form or add the following onkeydown listener to handle the Enter key:

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Zendesk Support

Created August 24, 2018 at 10:41 AM
Updated July 3, 2019 at 2:52 PM
Resolved September 26, 2018 at 1:15 PM