diff --git a/docs/reference/actions.md b/docs/reference/actions.md index 5c7e909b..6aa43db3 100644 --- a/docs/reference/actions.md +++ b/docs/reference/actions.md @@ -274,7 +274,7 @@ When an element has more than one action for the same event, Stimulus invokes th The action chain can be stopped at any point by calling `Event#stopImmediatePropagation()` within an action. Any additional actions to the right will be ignored: ```javascript -highlight: function(event) { +highlight(event) { event.stopImmediatePropagation() // ... }