dom icon indicating copy to clipboard operation
dom copied to clipboard

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

Open tanraya opened this issue 10 years ago • 2 comments

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?

tanraya avatar Apr 14 '14 02:04 tanraya

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.

cristiandouce avatar Apr 14 '14 02:04 cristiandouce

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

tanraya avatar Apr 14 '14 03:04 tanraya