#14509 closed defect (fixed)
delegation for mouse.enter on <tr> doesn't work
Reported by: | bill | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | Events | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Got stuck on #7111 because I couldn't use event delegation to catch mouse.enter and mouse.exit events on MenuItems, which are <tr> nodes:
on(dom.byId("tbody"), on.selector("tr", mouse.enter), function(evt){ console.log("mouse enter delegated", evt); });
Delegation was fixed in general in #13849, but this is still broken. Connecting directly to the <tr> node works:
query("tr").forEach(function(tr){ on(tr, mouse.enter, function(){ console.log("mouse enter on TR itself"); }); });
See attached test case.
Attachments (1)
Change History (5)
Changed 9 years ago by
comment:2 Changed 9 years ago by
Should I check in your tr.html and selector.html test files (even though they aren't automated)?
comment:3 Changed 9 years ago by
Milestone: | tbd → 1.8 |
---|
Hi Kris, I figured for dojo core you would use on.emit() to test behavior like this? Or on.emit() won't reproduce the error?
Note: See
TracTickets for help on using
tickets.
test case, put in dojo/tests