question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slot Footer Not Working with Transition Group

See original GitHub issue

Everything 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:closed
  • Created 5 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
David-Desmaisonscommented, Sep 28, 2018

It is not supported inside a transition-group.

2reactions
David-Desmaisonscommented, Mar 9, 2019

On second thought, I was abble to make it work, see update footer example: https://sortablejs.github.io/Vue.Draggable/#/footerslot

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found