You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-shadow-native-events.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ description: disallow `emits` which would shadow native html events
15
15
This rule reports emits that shadow native HTML events. (The `emits` option is a new in Vue.js 3.0.0+)
16
16
17
17
Using native event names for emits can lead to incorrect assumptions about an emit and cause confusion. This is caused by Vue emits behaving differently from native events. E.g. :
18
+
18
19
- The payload of an emit can be chosen arbitrarily
19
20
- Vue emits do not bubble, while most native events do
20
21
-[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.
0 commit comments