dom
dom copied to clipboard
Event delegation: event isn't bubbling up in dom tree
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?
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.
Thanks for your advice, Cristian! Now it works perfect.