Skip to content

Commit

Permalink
Change "bubbles" to "bubble" (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
klequis authored Apr 13, 2024
1 parent 32656bb commit b0a5b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/concepts/components/event-handlers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ As a result, there is no requirement for these functions to be reactive.
## Event delegation

Instead of attaching event listeners to every individual element, Solid uses _synthetic event delegation_, through the [`on__`](/reference/jsx-attributes/on_) form .
In this method event listeners are attached to the `document` element, and dispatch events to the relevant elements as they bubbles up.
In this method event listeners are attached to the `document` element, and dispatch events to the relevant elements as they bubble up.

By keeping the number of event listeners to a minimum, events can be captured more effectively.
This is especially useful when working with a large number of elements, such as in a table or list.
Expand Down

0 comments on commit b0a5b06

Please sign in to comment.