[richfaces-issues] [JBoss JIRA] (RF-11565) Showcase: multiple selections in rich:autocomplete doesn't work when "clicking" is used
Lukáš Fryč (JIRA)
jira-events at lists.jboss.org
Wed Jan 2 11:43:08 EST 2013
[ https://issues.jboss.org/browse/RF-11565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713782#comment-12713782 ]
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=autocomplete [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
More information about the richfaces-issues
mailing list