AutoCompleteBehavior: Selected input not modiefied when selected with keyboard
------------------------------------------------------------------------------

                 Key: WICKET-2289
                 URL: https://issues.apache.org/jira/browse/WICKET-2289
             Project: Wicket
          Issue Type: Bug
            Reporter: Stefan Fussenegger
             Fix For: 1.3.6


AbstractAutoCompleteRenderer.getOnSelectJavascriptExpression(Object) allows to 
eval some JS code in order to modify the selected input (see Javadoc). However, 
this method is applied differently for values selected by mouse clicks (as 
expected) or keyboard (wrong). When selected using the keyboard, any changes 
are ignored.

The keyboard related code should be changed from:

if(handleSelection(value)) {
obj.value = value;
if(typeof objonchange=="function") objonchange(event);
}

to

if(value = handleSelection(value)) {
obj.value = value;
if(typeof objonchange=="function") objonchange(event);
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to