[
https://issues.jboss.org/browse/RF-11565?page=com.atlassian.jira.plugin.s...
]
Lukáš Fryč edited comment on RF-11565 at 1/2/13 11:42 AM:
----------------------------------------------------------
In Google chrome 21.0.1180.83 the bug can be tracked down to line 329 in Autocomplete.js
{code:javascript}
325 var updateInputValue = function (value) {
326 var field = rf.getDomElement(this.fieldId);
327 var inputValue = field.value;
328
329 var cursorPosition = rf.Selection.getStart(field);
{code}
if keys are used to select, no blur event happens, and the currentPosition is correct.
if mouse are used to select, a blur event occurs, and the currentPosition is allways 0.
was (Author: mortenlud):
In Google chrome 21.0.1180.83 the bug can be tracked down to line 329 in
Autocomplete.js
325 var updateInputValue = function (value) {
326 var field = rf.getDomElement(this.fieldId);
327 var inputValue = field.value;
328
329 var cursorPosition = rf.Selection.getStart(field);
if keys are used to select, no blur event happens, and the currentPosition is correct.
if mouse are used to select, a blur event occurs, and the currentPosition is allways 0.
Showcase: multiple selections in rich:autocomplete doesn't work
when "clicking" is used
---------------------------------------------------------------------------------------
Key: RF-11565
URL:
https://issues.jboss.org/browse/RF-11565
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-input, showcase
Affects Versions: 4.1.0.Milestone3, 4.2.3.CR1, 4.3.0.M3
Environment: iPhone 4 (Safari)
Nexus (Android 2.3.6)
Google Chrome 12.0.742.112
Reporter: Jan Papousek
Assignee: Lukáš Fryč
Fix For: 4.3.0.CR1
Original Estimate: 1 hour, 30 minutes
Remaining Estimate: 1 hour, 30 minutes
The second a third autocomplete input in Showcase demo
http://localhost:8080/showcase/richfaces/component-sample.jsf?demo=autoco... [1]
doesn't work properly on the mentioned browsers/devices:
# type "Al"
# select "Alabama" -> input field is containing "Alabama"
# type ", P"
# select "Pennsylvania" with mouse/finger -> input field is containing
"Pennsylvania, P" (it should contain "Alabama, Pennsylvania")
The Safari developer's console on iPhone doesn't display any error.
It works properly on:
- Opera 11.50
- Firefox 6.0
[1]
http://10.0.2.2:8080/showcase/#autocomplete:modes in movile showcase
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira