From 552aa162bb8aa2c4e07621db1aa4e4965877a3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Mussini?= Date: Wed, 7 Oct 2020 20:21:03 -0300 Subject: [PATCH 1/2] Clarify and avoid using "In the event" to lead a phrase on events --- src/guide/component-custom-events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/component-custom-events.md b/src/guide/component-custom-events.md index 93a1b45b36..2f6beb9a43 100644 --- a/src/guide/component-custom-events.md +++ b/src/guide/component-custom-events.md @@ -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 the native one. ::: tip It is recommended to define all emitted events in order to better document how a component should work. From 27ce9d0e60c90728c3868658445368a0dca6e5f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Mussini?= Date: Wed, 7 Oct 2020 20:23:10 -0300 Subject: [PATCH 2/2] Update component-custom-events.md --- src/guide/component-custom-events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/component-custom-events.md b/src/guide/component-custom-events.md index 2f6beb9a43..f8e98ed49f 100644 --- a/src/guide/component-custom-events.md +++ b/src/guide/component-custom-events.md @@ -33,7 +33,7 @@ app.component('custom-form', { }) ``` -When a native event (e.g., `click`) is defined in the `emits` option, the component event will be used __instead__ of the native one. +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.