-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
This has come up once or twice — since component events don't propagate (unlike DOM events), if you want to listen to an event coming from a deeply nested component you have to propagate the event manually, like so:
<IntermediateComponent on:foo='fire("foo",event)'/>
I don't think we should automatically bubble events, since that's a potential source of confusion and would mean adding annoying extra code to every component that had nested components. But we could make it a bit less burdensome to manually propagate events with a shorthand syntax:
<IntermediateComponent on:foo/>
stalkerg, TehShrike, bbuhler, shancarter, m59peacemaker and 1 more
Metadata
Metadata
Assignees
Labels
No labels