Closed mhelaiwa closed 7 years ago
adding the prop :key="cell.row.id"
to the template solved my problem. I wonder why this wasn't mentioned in docs!!. I think this good package should have better docs.
Anyways this is the new code of the template:
<template slot="sel" scope="cell">
<div class="checkable-column">
<checkbox :id="cell.row.id" :val="cell.row" v-model="selected"></checkbox>
</div>
</template>
@enghelewa I am also facing similar issue.. what is the solution. Where I need to add key (:key="cell.row.id")?
Like this:
<template slot="sel" scope="cell">
<div class="checkable-column">
<checkbox :id="cell.row.id" :key="cell.row.id" :val="cell.row" v-model="selected"></checkbox>
</div>
</template>
Hi, Following the docs I'v faced a problem when I click on select all nothing selected also when I click on a checkbox of one row then all rows are selected. From Vue DevTools I see that clicking on select all make
selected
full of items and when select one single row makesselected
has one single element with empty string