Skip to content

Vue 3 [Vue warn]: Extraneous non-props attributes #4219

@Youhan

Description

@Youhan
WARN  [Vue warn]: Extraneous non-props attributes (attributes, lockAspectRatio, height, width) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes. at <BuilderImage>

Looks like for Image and other components the generated Vue components have <template> tag that does not contain single root element. and the $attrs are not handled correctly in that case.

Vue can pass through the $attr when the component has a single root element, but when there are more than on elements in the root the pass through of props does not happen and Vue warns about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions