[ 
https://issues.apache.org/jira/browse/WICKET-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg resolved WICKET-2289.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.7
         Assignee: Igor Vaynberg

> 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
>          Components: wicket-extensions
>    Affects Versions: 1.3.6
>            Reporter: Stefan Fussenegger
>            Assignee: Igor Vaynberg
>             Fix For: 1.3.7
>
>         Attachments: wicket-autocomplete.js.diff
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> 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