Skip to content

[FR] App config to set inheritAttrs: false globally #8542

Closed as not planned
Closed as not planned
@wenfangdu

Description

@wenfangdu

What problem does this feature solve?

The default behavior inheritAttrs: true is almost never the desired case for encapsulating components, I have to set inheritAttrs: false for pretty much all components that I write in real projects. I understand making inheritAttrs: false the default would be a huge breaking change: vuejs/rfcs#26, but at least provide an option to set inheritAttrs: false globally for all components.

What does the proposed API look like?

app.config.inheritAttrs = false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions