Skip to content

Commit 52d5595

Browse files
docs (#82): clarify attributes not included
Co-authored-by: Natalia Tepluhina <[email protected]>
1 parent 18fa2bf commit 52d5595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/component-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ There are two common scenarios when attribute inheritance needs to be disabled:
277277
1. When attributes need to be applied to other elements besides the root node
278278
1. When a component has multiple root nodes (i.e., a [fragment](TODO:fragment.md))
279279

280-
By setting the `inheritAttrs` option to `false`, this gives you access to the component's `$attrs` property, which includes all non-prop attributes (e.g., `class`, `style`, `v-on` listeners, etc.).
280+
By setting the `inheritAttrs` option to `false`, this gives you access to the component's `$attrs` property, which includes all attributes not included to component `props` and `emits` properties (e.g., `class`, `style`, `v-on` listeners, etc.).
281281

282282
Using our date-picker component example from the [previous section]('#attribute-inheritance), in the event we need to apply all non-prop attributes to the `input` element rather than the root `div` element, this can be accomplished by using the `v-bind` shortcut.
283283

0 commit comments

Comments
 (0)