Skip to main content

Bug Tracker

Side navigation

#5597 closed bug (patchwelcome)

Opened December 04, 2009 09:31PM UTC

Closed November 20, 2010 02:13AM UTC

hover( over, out ) wont fire when cursor cross over an input text

Reported by: Monstroplante Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.3.2
Keywords: hover input text mouse Cc:
Blocked by: Blocking:
Description

Here is an example, hover the red div traversing the input.

<html>

<body>

<script type="text/javascript" src="jquery-1.3.2.js"></script>

<input type="text"/>

<div id="absdiv" style="background:red; width:50px; height:50px; position:absolute; top:0;"></div>

<br/><br/><br/><br/><br/>

<div id="log" style="height:300px; overflow:auto;"></div>

<script type="text/javascript">

$(function(){

var log = function(txt){

$('#log').prepend($('<div/>').text(txt));

};

$('#absdiv').hover(function(){

log('hover');

}, function(){

log('!hover');

}).mouseout(function(){

log('mouseout');

}).mouseleave(function(){

log('mouseleave');

});

});

</script>

</body>

</html>

Attachments (0)
Change History (2)

Changed December 04, 2009 10:12PM UTC by Monstroplante comment:1

Forgot to say that the bug in on FF3.5

Changed November 20, 2010 02:13AM UTC by snover comment:2

resolution: → patchwelcome
status: newclosed

This is a bug with Firefox and mouseenter/mouseleave events. You can either use mouseover/mouseout instead, or if you would like to write a patch that fixes this problem, we would be happy to accept it. Otherwise, it is unlikely that this issue will be fixed by us, as it is no longer a problem in Firefox 3.6+.