Update article.md

This commit is contained in:
LeviDing 2020-03-27 09:08:04 +08:00 committed by GitHub
parent 162280b6d2
commit da3303b88f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,7 @@ The property `event.defaultPrevented` is `true` if the default action was preven
There's an interesting use case for it. There's an interesting use case for it.
You remember in the chapter <info:bubbling-and-capturing> we talked about `event.stopPropagation()` and why stopping bubbling is bad? You remember in the chapter <info:bubbling-and-capturing> we talked about `event.stopPropagation()` and why stopping bubbling is bad?
Sometimes we can use `event.defaultPrevented` instead, to signal other event handlers that the event was handled. Sometimes we can use `event.defaultPrevented` instead, to signal other event handlers that the event was handled.