Coder Social home page Coder Social logo

Comments (6)

jlboyd132321 avatar jlboyd132321 commented on July 19, 2024

Hello @DominiqueFERET ,

I too am having the same issue the updated Draggable component. I have two areas in my project that use the Draggable component. One uses the Draggable component with the Vuejs Transition-group feature and that works great. In fact @David-Desmaisons was kind enough to help me get this working with the last update.

However, the second instance where I don't use the Vuejs Transition-group, I get the same error as you. Like you, all examples work fine without the transition-group if the data is not pulled from an AJAX request, but when I pull from the AJAX source I get the same errors as you.

For now, @DominiqueFERET a work around for the problem is as simple as adding fake transition group tags within the Draggable component. See example 4 from the Readme. You don't actually need to use a transition animation just add the tags. It's not a pretty solution, but if you need something right away, it seems to work.

I can try to put up a jsfiddle that simulates the issue if you need me to, David?

Thanks!

from vue.draggable.

David-Desmaisons avatar David-Desmaisons commented on July 19, 2024

@jlboyd132321, It will be very nice to provide a jsfidlle!

from vue.draggable.

David-Desmaisons avatar David-Desmaisons commented on July 19, 2024

@jlboyd132321 , @DominiqueFERET , just publish version 2.3.1 with a fix.
Please confirm that's correcting your problem,
Thanks

from vue.draggable.

jlboyd132321 avatar jlboyd132321 commented on July 19, 2024

@David-Desmaisons , I was trying to get a jsfiddle example up for you, but you fixed the issue before I could even post the code, lol!

I can't speak for @DominiqueFERET , but it does appear that your version 2.3.1 fix has worked. In my project, both the instances where I use the transition-group tags and the instance where I don't use the transition-group tags work while using AJAX requests for my data. Thanks for the quick fix!

from vue.draggable.

DominiqueFERET avatar DominiqueFERET commented on July 19, 2024

here is my jsfiddle:
https://jsfiddle.net/DominiqueFERET/3uuxa5nL/2/

We're crossed... on jsfiddle, it's working ?! but may be allready in 2.3.1 ... i will try this version on my work...

from vue.draggable.

DominiqueFERET avatar DominiqueFERET commented on July 19, 2024

Yes ! i'm glad to confirm, your change in 2.3.1 works for me !!!
many thanks, David !!!

from vue.draggable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.