Bug Tracker

Modify

Ticket #9143 (closed bug: duplicate)

Opened 2 years ago

Last modified 15 months ago

Wrong behavior for "mouseenter" and "mouseleave" with "live"

Reported by: denis@… Owned by:
Priority: high Milestone: 1.next
Component: event Version: 1.6
Keywords: Cc:
Blocking: Blocked by:

Description

e.type returns "mouseover" when "mouseenter" fires and "mouseout" when "mouseleave" fires. See an example:

$('ul li').live('mouseenter mouseleave', function (e) {

var target = e.target ? e.target : event.srcElement;

console.log(e.type);

...

});

it looks like "mouseenter" behaves like "mouseover" and "mouseleave" like "mouseout".

Change History

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to high
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to event

comment:2 Changed 2 years ago by timmywil

Duplicate of #9069.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.