Skip to content

Commit 88546be

Browse files
fix: update the API reference for inheritAttrs (#530)
1 parent 4cf82d4 commit 88546be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/api/options-misc.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@
4343

4444
By default, parent scope attribute bindings that are not recognized as props will "fallthrough". This means that when we have a single-root component, these bindings will be applied to the root element of the child component as normal HTML attributes. When authoring a component that wraps a target element or another component, this may not always be the desired behavior. By setting `inheritAttrs` to `false`, this default behavior can be disabled. The attributes are available via the `$attrs` instance property and can be explicitly bound to a non-root element using `v-bind`.
4545

46-
Note: this option does **not** affect `class` and `style` bindings.
47-
4846
- **Usage:**
4947

5048
```js
5149
app.component('base-input', {
5250
inheritAttrs: false,
5351
props: ['label', 'value'],
52+
emits: ['input'],
5453
template: `
5554
<label>
5655
{{ label }}

0 commit comments

Comments
 (0)