Skip to content

Commit

Permalink
Wrong event name in dispatch.md (#4141)
Browse files Browse the repository at this point in the history
  • Loading branch information
AkosLukacs authored Apr 18, 2024
1 parent cd17132 commit 8c8e71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/src/en/magics/dispatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Notice that, because of [event bubbling](https://en.wikipedia.org/wiki/Event_bub
</div>
```

> The first example won't work because when `custom-event` is dispatched, it'll propagate to its common ancestor, the `div`, not its sibling, the `<span>`. The second example will work because the sibling is listening for `notify` at the `window` level, which the custom event will eventually bubble up to.
> The first example won't work because when `notify` is dispatched, it'll propagate to its common ancestor, the `div`, not its sibling, the `<span>`. The second example will work because the sibling is listening for `notify` at the `window` level, which the custom event will eventually bubble up to.
<a name="dispatching-to-components"></a>
## Dispatching to other components
Expand Down

0 comments on commit 8c8e71d

Please sign in to comment.