component / dom

DOM traversal, manipulation and events aggregate library (like jQuery)
228 stars 49 forks source link

Event delegation: event isn't bubbling up in dom tree #78

Open tanraya opened 10 years ago

tanraya commented 10 years ago

I'm trying to use event delegation in dom library, but it's not work properly. I mean that event isn't bubbling up in dom tree.

Here's example: http://jsbin.com/mipoyica/1/

Event isn't bubbling up to LI element when you click on bold list item (actually, you're clicking on B element that is within LI element).

Is it properly behavior?

cristiandouce commented 10 years ago

I think there was some workaround at: component/delegate@7b4fb015256094b3dde3b07fd84271d51159521a

I see you use compiled component/dom from master on the example. Try compiling with component(1) and see if that works. Sounds like dom.js is not updated.

tanraya commented 10 years ago

Thanks for your advice, Cristian! Now it works perfect.