Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3.6
-
None
Description
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);
}