Giter Club home page Giter Club logo

Comments (8)

andreseloysv avatar andreseloysv commented on July 28, 2024 3

Hello,

the problem is in the Sortable.js. on the line 662 they use _css(cloneEl, 'display', 'none'); and does not work. I added _css(cloneEl, 'opacity', '0'); and works for me.

from vue.draggable.

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

@JTallis . Could you provide a js-fiddle please?

from vue.draggable.

JTallis avatar JTallis commented on July 28, 2024

Sadly, I cannot. I've copied as much as I possibly can to a jsfiddle but it doesn't duplicate the issue. That is strange. Here was my fiddle attempt: https://jsfiddle.net/f1scf0ym/

I can however provide a live URL: http://vue.chatolia.com/chat (Note that a lot of features are not present such as visually displaying error messages so it's a good idea to check the console where all incoming data is logged).

I can also provide a link to the repository. Here is the file that I'm having issues with: https://github.com/JTallis/Chatclient/blob/master/resources/assets/js/components/chat/index.vue

Seeing as I cannot reproduce the issue on jsfiddle, makes me believe the issue is elsewhere. However I have no idea. I know that you are unable to edit the code to debug it further but it gives you a chance to see what is going on and have a look over the code. I repeat, though, removing :list="tabs" seems to fix the issue. I apologise that I am unable to reproduce the issue in a fiddle.

To see the issue on the live link: Enter a nickname so you are connected to the chat. Click on the + icon and choose the room 18 Plus on the left. Move the + tab to the right to see that the close icon vanishes. Step 2 isn't necessary, but I find it allows me to see the behaviour a little bit better.

I believe there was a way to detect when styling has been changed and from what but I can't remember what it is. I can also say that the states remain the same when the tabs get moved. options.closeable remains true for all tabs except the + tab which is what is intended.

from vue.draggable.

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

Hello @JTallis , I have no clue what is happening here. The list options will trigger an change in the underlying list that will trigger a re-render, so no idea why this strange behaviour.

The fact that a simple fiddle does not reproduce the issue shows that the problem is not related to the template and vue.draggable but to another factor.

I would suggest 2 things:

  1. create a template for the item of the list and see if this correct the issue
  2. Try to take out the draggable component and replace by a ul element. Then in the console alter the tabs list and see if the problem is still there. If so, the problem is happening when list re-render and is not related to draggable.

from vue.draggable.

JTallis avatar JTallis commented on July 28, 2024

I was adding more features to the chat while awaiting your reply. The issue fixed itself. I tried to revert the changes I remember making to see if I could reproduce the issue again and I couldn't. I have no idea what the issue was, certainly an odd one.

If the issue were to pop up again, I'll try out your suggestions and see if I can further debug such a thing. Thanks.

from vue.draggable.

varHarrie avatar varHarrie commented on July 28, 2024

@JTallis @David-Desmaisons
Same issue, sadly when I move the code into jsfiddle, fail to reproduce.

"vuedraggable": "^2.8.4"
"vue": "^2.1.10"

from vue.draggable.

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

@varHarrie I need a jsfidle to investigate. It is possible that working on this, you find waht is causing the issue..

from vue.draggable.

humayunghani avatar humayunghani commented on July 28, 2024

@andreseloysv Same thing was happening with me because I am using d-flex class on parent element. I tried your solution and it worked for me, which is good. However, do you know a way so it won't overwrite sortable.js when some other developer simply runs 'npm run dev'. In order words, how can I instruct webpack or npm to only use my modified sortable.js file and not use from the package?
Thanks.

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.