Skip to content

Commit 3f5592f

Browse files
Update src/guide/extras/web-components.md
Co-authored-by: skirtle <[email protected]>
1 parent d61ef3d commit 3f5592f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/guide/extras/web-components.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ However, there could be rare cases where the data must be passed as a DOM proper
7979

8080
The `v-on` directive handles lowercase and kebab-case events dispatched from custom elements. However, the `v-on` directive does not support listening for events whose names include capital letters. For example, adding `v-on:myInput` to a custom element adds a listener for events with the name `my-input`, which does not handle an event with the name `myInput`.
8181

82-
If your app uses custom elements that dispatch events with capital letters, you can use a custom directive to add the correct event listener to the element.
83-
84-
#### Example Custom Directive to Handle Specific Events
82+
If you use custom elements that dispatch events with capital letters, you can use a custom directive to add the correct event listener to the element:
8583

8684
```js
8785
// ex. <my-element v-event:eventName="handler" />

0 commit comments

Comments
 (0)