LexiFi / ocaml-vdom

Elm architecture and (V)DOM for OCaml
MIT License
197 stars 13 forks source link

Propagate DOM events upwards until finding a handler. #19

Closed alainfrisch closed 6 years ago

alainfrisch commented 6 years ago

Fix #18.

Previously, only handlers on the event target itself were applied. Now if the target does not defines a handler, the search continues with its parent, up to the root.

It's not clear whether it makes sense to propagate all events (for instance, input/change might not be relevant).