-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconstant inheritAttrs
behavior in production and development
#2549
Comments
I'd rather say that the dev behaviour is wrong.
However in dev, components can "accidentally return a fragment if they have one root node but also one or more root comments, which are preserved in dev, but not in prod. So in dev, we "pull out" this root node from the fragment - and in this instance, that should not happen as no comments are involved. Relevant code: That function should not be called on a fragment resulting from a slot, or maybe check for actual Comment nodes to be present - not sure yet about the best approach. |
Why attribute inheritance is not supported on fragments,is it limited by the difficulty of implementation? @LinusBorg |
Because its unclear on which element to inherit.
The latter would create invalid HTML for an |
I got it, thx. |
Version
3.0.2
Reproduction link
https://github.com/07akioni/vue-inherit-attrs-bug
Steps to reproduce
npm run dev
npm run build
, then serve distWhat is expected?
I'm not sure which is expected by vue.
I expect the dev behavior
What is actually happening?
behavior is inconstant
The text was updated successfully, but these errors were encountered: