Comments (5)
If you can setup a repo that always makes it easier for me to see whats going on.
from vue-responsive-dash.
I used another test we did in the past but could not replicate this issue: https://codesandbox.io/s/vue-responsive-dash-3zorp?file=/src/App.vue
from vue-responsive-dash.
Hi
I was able to replicate it, I found the cause was using the index as the key
it works with
<dash-item v-for="item in layout.items" v-bind.sync="item" :key="item.id">
but not with
<dash-item v-for="(item, index) in layout.items" v-bind.sync="item" :key="index">
You can see the error in the console.
Replicated here:
https://codesandbox.io/s/vue-responsive-dash-qd5d3?file=/src/App.vue
Does the key have to be the item.id ?
I think I changed it to index when i was trying to get the drag drop to work.
Thanks
Peter
from vue-responsive-dash.
Hi,
I believe it does need to be item.id otherwise the system may not sync back to the array of items in the correct order or change the wrong item. This is why the error occurs as its actually changing the dash items internally.
from vue-responsive-dash.
ok thanks, i will change it back to id.
from vue-responsive-dash.
Related Issues (20)
- Lock Dash Item coordinates HOT 6
- Scrollbars and selects does not work inside dash items HOT 2
- Allow setting ignoreFrom on DashItem's interactiveInstance attribute HOT 1
- Locked DashItem prevents touch scrolling HOT 2
- Not receiving moveEnd for not dragging item HOT 2
- Grid not readjusting when changing item width HOT 1
- Components inside dash-item mounted for lowest and current breakpoint. HOT 1
- How to lock item HOT 2
- Loading charts when data is ready
- Dash Item wider than Dash Layout
- Dash Item position issue on adding new item HOT 3
- The "@interactjs/*/index" packages are not quite stable yet. Use them with caution.
- How to save the current position of the elements? HOT 1
- I found a typo.
- Dashboard id rebinding problem.
- Dashboard state update issue HOT 1
- Vue3 Support HOT 4
- Resize event on window resize HOT 1
- Nuxt SSR Support HOT 1
- Known alternative using Vue3? 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-responsive-dash.