Skip to content

Commit fba08b5

Browse files
authored
Merge pull request javascript-tutorial#174 from rsyring/patch-1
Clarify order of bubble/capture handlers on the target
2 parents 42ac7b0 + 5eb492e commit fba08b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/2-events/02-bubbling-and-capturing/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ There are two possible values for that optional last argument:
145145

146146
Note that while formally there are 3 phases, the 2nd phase ("target phase": the event reached the element) is not handled separately: handlers on both capturing and bubbling phases trigger at that phase.
147147

148-
If one puts a handler on the target element -- it triggers last on the capturing state, and first on the bubbling stage.
148+
If one puts capturing and bubbling handlers on the target element, the capture handler triggers last in the capturing phase and the bubble handler triggers first in the bubbling phase.
149149

150150
Let's see it in action:
151151

0 commit comments

Comments
 (0)