Skip to content

Commit

Permalink
Minor edit to paragraph in Custom Events section (#610)
Browse files Browse the repository at this point in the history
* Clarify and avoid using "In the event" to lead a phrase on events

* Update component-custom-events.md
  • Loading branch information
ElMassimo committed Oct 8, 2020
1 parent a09c316 commit e8cf8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/component-custom-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ app.component('custom-form', {
})
```

In the event a native event (e.g., `click`) is defined in the `emits` option, it will be overwritten by the event in the component instead of being treated as a native listener.
When a native event (e.g., `click`) is defined in the `emits` option, the component event will be used __instead__ of a native event listener.

::: tip
It is recommended to define all emitted events in order to better document how a component should work.
Expand Down

0 comments on commit e8cf8da

Please sign in to comment.