Slot Footer Not Working with Transition Group
See original GitHub issueEverything works, except when I try to add a non-draggable item with footer within a transition-group
like this:
<draggable v-model="myList" :options="{draggable:'.item'}">
<transition-group name="animated-list">
<div v-for="element in myList" :key="element" class="animated-list-item item">
<book :beat.sync="books[element]"></book>
</div>
<button slot="footer" key="button">Add Another Book</button>
</transition-group>
</draggable>
If I remove transition-group
it works as expected.
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
How to use vuedraggable with transition groip and header slot ...
When I add header slot, it stops working <div slot="header">Hello!</button>. If remove transition group and keeps only header it works again ...
Read more >Vue transition-group not working with slots? - Get Help
I'm using slots to get the desired functionality. I've wrapped the slide components in a transition-group like so: Slider.vue :
Read more >v-data-table API - Vuetify
Emits when a table row is right-clicked. The item for the row is included. NOTE: will not emit when table rows are defined...
Read more >vuedraggable/README.md - UNPKG
GitHub open issues](https://img.shields.io/github/issues/SortableJS/Vue. ... neither header or footer slot works in conjunction with transition-group.
Read more >Creating reusable transitions in Vue.js - Binarcode
However, there is a problem with this approach. ... By providing a slot in our transition component we could use it almost in...
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 Free
Top 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
It is not supported inside a transition-group.
On second thought, I was abble to make it work, see update footer example: https://sortablejs.github.io/Vue.Draggable/#/footerslot