-
Notifications
You must be signed in to change notification settings - Fork 549
Unable to have vue component as tag #11
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
Comments
Try |
Its one of the things I already tried, no dice same error =( |
+1 |
+1 any solution here? |
@michaeldtruong Make sure that you register the component in the same app instance where you instanciate the draggable component. |
@David-Desmaisons Thanks for the suggestion, I ended up changing my implementation so I don't need to get this working anymore. I did take a second look into this yesterday to close the issue but it seems that it was not what was causing the error. I will revisit this in the future to see what is it with my implementation that is causing it to not work properly. |
I'm having the same error. Looks like it returns null from the slot
Did some research. Evan You had a comment about it:
I believe the implementation logic should change based on this comment. |
I have the same problem. // component
<template>
<draggable
:list="list"
:item-key="itemKey"
tag="transition-group"
:component-data="{
name: typeDrag ? null : 'flip-list'
}"
@start="typeDrag = true"
@end="typeDrag = false"
:animation="200"
ghost-class="ghost"
:group="group"
>
<template #item="data">
<slot name="item" v-bind="data"></slot>
</template>
</draggable>
</template>
// other file to use
<DraggableBox :list="typeList" item-key="value" group="type">
<template #item="{ element }">
<div class="lc-drag">
<svg class="icon lc-dragbar" aria-hidden="true">
<use xlink:href="#icon-vm-drag"></use>
</svg>
<ACheckbox :value="element.value">
{{ element.name }}
</ACheckbox>
</div>
</template>
</DraggableBox> |
Hey @WormGirl, I recently had the same issue but with a
|
You are right, i resolved it by this too. |
I had the same problem when I upgraded all the dependencies. |
(using 4.0.1)
I am unable to use a component as the 'tag'. The component itself is registered globally
main.js
import CanvasElementsDragTag from '@/app/components/CanvasElementsDragTag';
app.component('CanvasElementsDragTag', CanvasElementsDragTag);
CanvasElementsDragTag.vue
CanvasElements.vue
I am able to see 'in' in the console but get this error after
Not sure if there is something obvious I am missing.
The text was updated successfully, but these errors were encountered: