Skip to content

Commit

Permalink
Update docs/rules/no-shadow-native-events.md
Browse files Browse the repository at this point in the history
Co-authored-by: Flo Edelmann <[email protected]>
  • Loading branch information
JoCa96 and FloEdelmann committed Sep 19, 2024
1 parent b62c161 commit 4feb834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-shadow-native-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Using native event names for emits can lead to incorrect assumptions about an em
- The payload of an emit can be chosen arbitrarily
- Vue emits do not bubble, while most native events do
- [Event modifiers](https://vuejs.org/guide/essentials/event-handling.html#event-modifiers) only work on HTML events or when the original event is re-emitted as emit payload.
- When the native event is remitted the `event.target` might not match the actual event-listeners location.
- When the native event is re-emitted, the `event.target` might not match the actual event-listeners location.

The rule is mostly aimed at developers of component libraries.

Expand Down

0 comments on commit 4feb834

Please sign in to comment.