Bug Tracker

Opened 7 years ago

Closed 7 years ago

#10619 closed bug (invalid)

Hover function repeats on mouseleave

Reported by: pkrenar@… Owned by:
Priority: low Milestone: None
Component: event Version: 1.4
Keywords: Cc:
Blocked by: Blocking:

Description

In previous version that was good but in newest still no longer work. Hover function repeats on mouseleave. This is example: $(document).ready(function(){

$(".main-link").hover(function(){

$(this).removeClass("hovered"); $(this).addClass("hovered"); $("ul.sub-nav").hide(); $(this).siblings("ul.sub-nav").stop(false,true).fadeIn("slow");

});

});

Change History (2)

comment:1 Changed 7 years ago by anonymous

i've fixed that...replaced hover function with mouseover, thanks

comment:2 Changed 7 years ago by Rick Waldron

Component: unfiledevent
Priority: undecidedlow
Resolution: invalid
Status: newclosed

So, just to be clear - that behaviour is _correct_ when you pass only one argument to .hover(), see: http://api.jquery.com/hover/#hover2

Note: See TracTickets for help on using tickets.