From be776ec5366021a03a5c3fa889e4b75f423f1107 Mon Sep 17 00:00:00 2001 From: DoomGuy <307901355+abhhjhh28-svg@users.noreply.github.com> Date: Fri, 6 Nov 2026 08:34:22 +0300 Subject: [PATCH] docs: clarify hyphenated listener names in attrs --- src/guide/components/attrs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/components/attrs.md b/src/guide/components/attrs.md index 507fc731c9..31a65b6770 100644 --- a/src/guide/components/attrs.md +++ b/src/guide/components/attrs.md @@ -106,7 +106,7 @@ Some notes: - Unlike props, fallthrough attributes preserve their original casing in JavaScript, so an attribute like `foo-bar` needs to be accessed as `$attrs['foo-bar']`. -- A `v-on` event listener like `@click` will be exposed on the object as a function under `$attrs.onClick`. +- A `v-on` event listener like `@click` will be exposed on the object as a function under `$attrs.onClick`. Hyphenated event names are converted to camelCase, so `@my-event` is exposed as `$attrs.onMyEvent`. Using our `` component example from the [previous section](#attribute-inheritance) - sometimes we may need to wrap the actual `