google / dart-tagtree

A React-like UI framework in Dart
Apache License 2.0
78 stars 14 forks source link

Implement event bubbling #4

Open skybrian opened 10 years ago

skybrian commented 10 years ago

TagTree currently doesn't support any sort of event capturing or bubbling; an event handler needs to be attached to the exact node that receives the event.

This is tricky to implement due to the way nodes are expanded into shadow nodes. A parent shouldn't be exposed to the internal details of its children.