You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Commented) (JIRA)" <ji...@apache.org> on 2011/12/15 14:48:30 UTC

[jira] [Commented] (WICKET-4296) In Firefox the auto complete dialog will not be closed when clicking besides it.

    [ https://issues.apache.org/jira/browse/WICKET-4296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170200#comment-13170200 ] 

Martin Grigorov commented on WICKET-4296:
-----------------------------------------

This change is also part of my work on Wicket-Ajax for Wicket 6.
                
> In Firefox the auto complete dialog will not be closed when clicking besides it.
> --------------------------------------------------------------------------------
>
>                 Key: WICKET-4296
>                 URL: https://issues.apache.org/jira/browse/WICKET-4296
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.4.19
>            Reporter: Johan Compagner
>            Assignee: Johan Compagner
>             Fix For: 1.4.20, 1.5.5
>
>
> Currently we do:
> obj.onblur=function(event){      		
>     		if(mouseactive==1){
>                 ignoreOneFocusGain = true;
>     			Wicket.$(elementId).focus();
>     			return killEvent(event);
>     		}
>           	hideAutoComplete();
>           	if(typeof objonblur=="function") return objonblur.apply(this,[event]);
>         }
> somhow we override then onblur behavior because that one is never called in FF to hide the auto complete
> if i use the Wicket.Event add listeners:
>         Wicket.Event.add(obj,'blur',function(event){      		
>     		if(mouseactive==1){
>                 ignoreOneFocusGain = true;
>     			Wicket.$(elementId).focus();
>     			return killEvent(event);
>     		}
>           	hideAutoComplete();
>         });	 
> it works fine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira