Skip to content

Commit 1e91e9a

Browse files
authored
Merge pull request #2218 from XiaoHongYong/master
Resolved: Grid engine.nodes count is incorrect after removing item.
2 parents 192c35a + 7d8ebe2 commit 1e91e9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/vue3js_v-for.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h1>How to integrate GridStack.js with Vue.js</h1>
3737

3838
<div class="grid-stack">
3939
<div v-for="(w, indexs) in items" class="grid-stack-item" :gs-x="w.x" :gs-y="w.y" :gs-w="w.w" :gs-h="w.h"
40-
:gs-id="w.id" :id="w.id">
40+
:gs-id="w.id" :id="w.id" :key="w.id">
4141
<div class="grid-stack-item-content">
4242
<button @click="remove(w)">remove</button>
4343
{{w}}
@@ -160,4 +160,4 @@ <h1>How to integrate GridStack.js with Vue.js</h1>
160160
</script>
161161
</body>
162162

163-
</html>
163+
</html>

0 commit comments

Comments
 (0)