Attributes are ignored because the component is a fragment instance
See original GitHub issueHi there, in my vuex / vue-router spa on a fresh install with just the basic example i’m getting:
vue.common.js?e881:1014 [Vue warn]: Attributes ":selected.sync", ":options" are ignored on component <multiselect> because the component is a fragment instance: http://vuejs.org/guide/components.html#Fragment-Instance
Would really like to use it in my project any insight on this?
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Vue - Attributes are ignored on component because the ...
I have a component where I am using a child component . ... Vue - Attributes are ignored on component because the component...
Read more >Vue.js component is a fragment instance - Stack Overflow
1 Answer 1 · Sorry should have mentioned that. · Try this to ensure it is even the area you think it is......
Read more >Solve component is a fragment instance issue - Medium
Attribute “v-cloak” is ignored on component <component-name> because the component is a fragment instance. Just go to your component ...
Read more >Rennetti.com
Solving VuejS Attribute xxxx is ignored on component router-view because the component is a fragment instance. Posted 6 years ago - updated 6...
Read more >Components - API Manual
To use this constructor as a component, you need to register it with ... the component can now be used in a parent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not sure that the above construction is actually valid. Because you try to register another component named
'multiselect'
with Multiselect as a child component, but without providing any template, that would actually start thevue-multiselect
inside.If you need to register the multiselect component globally please do it as in the Vue docs.
If you intend on wrapping vue-multiselect inside another component, please try the following code:
You could try omiting the additionall
<div>
inside the template string. Then you could run the component with<customselect></customselect>
.Let me know if this helps! 😃
How do you import the component?
It should be like this:
import { Multiselect } from 'vue-multiselect'
See the documentation for further examples.If you omit the
{ }
it will throw the above error. Let me know if this helps. I hope it does! 😃