Comments (12)
Hi @ddenev, you are using it in production mode that's why error messages are not clear. I will try to check it out and get back to you.
from dflex.
Thanks for sharing the link. I will ship and release it to npm tomorrow.
from dflex.
Thank you, @jalal246!
from dflex.
Hi @jalal246,
just updated to v3.9.10 but still have the same error.
from dflex.
Thank you for the sandbox sample! I noticed that you have added an id
prop to the component
element
which I did not have in my template.
Adding it to my template removed the error. Without it I still get the same error.
I never met this requirement in the documentation though - that the draggable element should have an id
attribute - or maybe I wasn't paying enough attention :)
from dflex.
It appears that a generated child text node is triggering an error during registration. Given my limited familiarity with Vue, it seems this node is automatically generated by the template.
For instance, this list triggers an error due to the presence of text elements:
NodeList(6) [text, li#item1, li#item2, li#item3, li#item4, text]
The inclusion of non-HTML Element nodes, such as text nodes, can disrupt the expected behavior and potentially lead to errors in the process.
DFlex won't allow it assuming all elements in the same container should be HTML Element.
from dflex.
But there are no text elements in the rendered DOM:
from dflex.
I know, but if you point to the parent element and then do $0.childNodes
you can see there's one. It's an easy fix assuming this is a Vue default behavior and not something that can be addressed within the template itself.
from dflex.
If it's an easy fix, could you please do it then? There is nothing I can do at my end since indeed, this is how Vue works: vuejs/core#8444
from dflex.
@ddenev, Are you sure? I made a quick sandbox and it's working: https://codesandbox.io/s/loving-almeida-sst43z?file=/src/components/ListItem.vue
from dflex.
@ddenev, I should pay more attention to the docs. IDs are required to be unique and should have non-numerical values. So, avoid using an index for IDs.
I'm also working on a Vue playground. I find it much easier to simply copy and paste the code rather than reading the React version.
from dflex.
Thank you! A Vue playground would be indeed very helpful, looking forward to it.
from dflex.
Related Issues (20)
- bug when dragged is leaving from the end and returning back to the list container
- Add test covering dragged leaving from edn & coming back
- Create draggable example for Svelte HOT 1
- Dark mode breaks text contrast on certain areas HOT 1
- Feature: drag item and scroll HOT 1
- v3.6.0 Draggable throws Error `can't access property "x", translate is undefined` HOT 2
- Drag and scrolling doesn't work HOT 1
- Restricted element cause other elements to jump beneath HOT 1
- Animation demo HOT 1
- playground issues HOT 6
- After dragging is done, translate3d property still exists in dragged element's style attribute HOT 16
- Error when trying to add new DnDComponent while running: Uncaught TypeError: h2 is undefined HOT 25
- Bug in example demo HOT 2
- Defining drop zone HOT 4
- npm install fails HOT 2
- Bug: not properly committing when migrating between scrollable containers
- Bug: none of the DFlex events are dispatched HOT 6
- Unable to stimulate DnD in puppeteer
- Please update the documentation and release notes
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 dflex.