Skip to content

Commit

Permalink
Include beforetoggle as an event type for ToggleEvent (mdn#37835)
Browse files Browse the repository at this point in the history
  • Loading branch information
knowler authored Jan 28, 2025
1 parent d74e45a commit 0aeb03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/toggleevent/toggleevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ new ToggleEvent(type, init)
### Parameters

- `type`
- : A string representing the type of event. In the case of `ToggleEvent` this is always `toggle`.
- : A string representing the type of event. In the case of `ToggleEvent` this is always `beforetoggle` or `toggle`.
- `init`
- : An object containing the following properties:
- `newState`
Expand Down

0 comments on commit 0aeb03c

Please sign in to comment.