[richfaces-issues] [JBoss JIRA] Work stopped: (RF-1845) rich:tooltip under h:inputText don't hide on blur (using TAB key), when event is set to "onfocus". with on click works fine.

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Wed Jan 16 10:55:41 EST 2008


     [ http://jira.jboss.com/jira/browse/RF-1845?page=all ]

Work on RF-1845 stopped by Nick Belaevski.

> rich:tooltip under h:inputText don't hide on blur (using TAB key), when event is set to "onfocus". with on click works fine.
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-1845
>                 URL: http://jira.jboss.com/jira/browse/RF-1845
>             Project: RichFaces
>          Issue Type: Patch
>    Affects Versions: 3.1.3
>         Environment: Windows Vista
> JBoss AS 4.0.2
> Mozilla Firefox 2.0.0.11
>            Reporter: Simon Himelreich
>         Assigned To: Nick Belaevski
>             Fix For: 3.2.0
>
>
> When wlaking throught input form elements with TAB key, tooltip does not hide when leaving focus of the h:inputText element. 
> I added some code in tooltip.js under /org/richfaces/renderkit/html/scripts/tooltip.js and now it works fine
> Uder line 84:
> 			if ("focus" == this.event) {
> 			  Event.stopObserving(this.parent, "blur", this.doHideListner, false);
> 			  Event.stopObserving(this.toolTip, 'blur', this.leaveToolTipListner, false);					
> 			} else {
> 				Event.stopObserving(this.parent, "mouseout", this.doHideListner, false);
> 			  Event.stopObserving(this.toolTip, 'mouseout', this.leaveToolTipListner, false);
> 			}
> Under line 141:
> 		if ("focus" == this.event) {
> 	          Event.observe(this.parent, "blur", this.doHideListner, false);
> 		  Event.observe(this.toolTip, 'blur', this.leaveToolTipListner, false);				
> 		} else {
> 		  Event.observe(this.parent, "mouseout", this.doHideListner, false);
> 		  Event.observe(this.toolTip, 'mouseout', this.leaveToolTipListner, false);
> 		}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list