Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
6.4.0
Description
Given a text field that uses the following behaviors:
A. AjaxFormComponentUpdatingBehavior("onkeypress")
B. AutoCompleteBehavior
Say I enter an letter 'U' into the text field, and an auto-suggest list pops up.
When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior A.
To rectify this problem which didn't happen in wicket 1.4x, I changed the following in wicket-autocomplete.js,
Wicket.Event.add(obj,"keypress",function(jqEvent){
if(Wicket.Event.keyCode(jqEvent)===KEY_ENTER){
if(selected>-1||hidingAutocomplete===1){
hidingAutocomplete=0;
jqEvent.stopImmediatePropagation(); <------changed from jqEvent.stopPropagation();
Attachments
Issue Links
- is related to
-
WICKET-4857 AutoCompleteTextFields submits Form if a choice is selected via enter-key
- Resolved
- relates to
-
WICKET-5055 AutoComplete still triggers redundant events to registered change listener
- Resolved
-
WICKET-5609 AutoCompleteTextField can only complete text that is visible on screen browser screen
- Closed