Closed as not planned
Description
Vue version
3.2.37
Link to minimal reproduction
Steps to reproduce
It can be seen right after launch.
What is expected?
- Attribute
state
should be set on the div as an HTML-Attribute with value343
- Property
state
should be shown in the content as a "CompParent" value. - Besides it shouldn't throw a warning about type mismatch.
What is actually happening?
- attribute a="343" is missing
- Content:
a: 343
- Warning:
Invalid prop: type check failed for prop "a". Expected String with value "343", got Number with value 343. at <Comp1a=343> at <Compa=343> at <Repl>
System Info
No response
Any additional comments?
The attributes from a component will be inherited by every nested child of the root level down to the deepest HTML-Element where the attribute could be set. But if the deepest child has a property with the same name, it causes a conflict, and somehow the grandparent attribute has a bigger priority than the property set by the direct parent.
P.S.: vue 2 does not have this problem.
Metadata
Metadata
Assignees
Labels
No labels