Comments (8)
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.
@JTallis . Could you provide a js-fiddle please?
from vue.draggable.
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.
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:
- create a template for the item of the list and see if this correct the issue
- 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.
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.
@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.
@varHarrie I need a jsfidle to investigate. It is possible that working on this, you find waht is causing the issue..
from vue.draggable.
@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)
- 判断被拖拽元素是否在目标区域内并阻止拖拽
- TypeError: Cannot read properties of undefined (reading 'class')
- Draggable preventing scroll behavior HOT 1
- [feature request] typing for `change` event
- Has this project stopped updating and maintaining
- New draggable under maintenance HOT 1
- Incorrect display of the sheet after dragend HOT 2
- npm i -S vuedraggable 直接报错
- VueDraggable only @choose @unchoose events only getting triggered in vue2.7.15 version
- Please set the `latest` npm tag to v4
- Not working with Socket.io
- How to disable draggable in vue draggable HOT 1
- How to import nested-draggable component ? Vue2
- Triggering drag and drop programmatically
- Missing required prop: "itemKey"
- how to lock vuedraggable for specific array nested level
- Nested Draggable Input with v-model automatically blurs
- Incorrect Visual Representation After Transferring All Items Between Groups
- Address :force-fallback="true" Issue in Cross-List Drag and Drop Cloning with vue-draggable
- 在vue2项目里面 引用vuedraggable ,vue拖拽之后松开就会复原 end事件没有任何发应,start事件可以监听到开始拖拽 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue.draggable.