Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangenming authored Sep 29, 2024
1 parent bc3edf4 commit 505c038
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/en-us/web/api/event/preventdefault/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ non-cancelable event, such as one dispatched via
{{domxref("EventTarget.dispatchEvent()")}}, without specifying
`cancelable: true` has no effect.

If a passive listener does call preventDefault(), the user agent will do nothing other than generate a console warning.

## Syntax

```js-nolint
Expand Down

0 comments on commit 505c038

Please sign in to comment.