Skip to content

Commit f8851b8

Browse files
JGJPchrisvfritz
authored andcommitted
add link to MDN event reference in v-on (vuejs#1486)
* add link to MDN event reference in v-on * refactor link to MDN events doc
1 parent 377d90e commit f8851b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,7 @@ type: api
18611861

18621862
Starting in 2.4.0+, `v-on` also supports binding to an object of event/listener pairs without an argument. Note when using the object syntax, it does not support any modifiers.
18631863

1864-
When used on a normal element, it listens to **native DOM events** only. When used on a custom element component, it also listens to **custom events** emitted on that child component.
1864+
When used on a normal element, it listens to [**native DOM events**](https://developer.mozilla.org/en-US/docs/Web/Events) only. When used on a custom element component, it listens to **custom events** emitted on that child component.
18651865

18661866
When listening to native DOM events, the method receives the native event as the only argument. If using inline statement, the statement has access to the special `$event` property: `v-on:click="handle('ok', $event)"`.
18671867

0 commit comments

Comments
 (0)