[
https://issues.apache.org/jira/browse/WICKET-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Fussenegger updated WICKET-2289:
---------------------------------------
Attachment: wicket-autocomplete.js.diff
patch for wicket-autocomplete.js
> 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
>
> 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.