Closed leviroth closed 6 years ago
This might qualify as a bug indeed. The current implementation relies on propagation: it attaches genric event listeners only to the toplevel container for the app, and those generic handlers finds the actual callback depending on the event target (walking the vdom). But it only looks for callbacks on the innermost element, and it should emulate the usual propagation itself (i.e. fallback to looking on its ancestors, up to the root of the app).
Confirmed.
Thanks!
Example code:
In the resulting app, clicking in the inner div doesn't do anything, seemingly because the inner div has its own do-nothing onclick handler that's capturing the event. Is this the intended behavior? It doesn't work that way when I try implementing the same thing in JavaScript, but that might be my limited knowledge of JavaScript and the DOM.