You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Vue warn]: Extraneous non-props attributes (onClick) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
Although it's not very important to me, I have many ways to avoid it, but it looks like a bug.
The text was updated successfully, but these errors were encountered:
This is not a bug, just a warn in DEV
because when you use multiple children template, the vue will wrap a Fragment around it.
There are two nodes in the example, one is the comment and the other is the element, and I think in this case the user wants to pass attributes to the element node, rather than remove comments or wrap them.
Version
3.0.0-alpha.10
Reproduction link
https://codepen.io/a631807682/pen/KKpEexa?editors=1011
Steps to reproduce
Open the link and see the console.
What is expected?
Work like vue2.x https://codepen.io/a631807682/pen/yLNwEQb?editors=1011
What is actually happening?
Warning in console
Although it's not very important to me, I have many ways to avoid it, but it looks like a bug.
The text was updated successfully, but these errors were encountered: