diff --git a/src/components/selectable_list/selectable_list.js b/src/components/selectable_list/selectable_list.js
index 7856d725..93efa840 100644
--- a/src/components/selectable_list/selectable_list.js
+++ b/src/components/selectable_list/selectable_list.js
@@ -13,10 +13,9 @@ const SelectableList = {
}
},
methods: {
- toggle (checked, item) {
- const oldChecked = this.isSelected(item)
+ toggle (checked, key) {
+ const oldChecked = this.isSelected(key)
if (checked !== oldChecked) {
- const key = this.getKey(item)
if (checked) {
this.selected.push(key)
} else {
@@ -24,8 +23,8 @@ const SelectableList = {
}
}
},
- isSelected (item) {
- return this.selected.indexOf(this.getKey(item)) !== -1
+ isSelected (key) {
+ return this.selected.indexOf(key) !== -1
}
}
}
diff --git a/src/components/selectable_list/selectable_list.vue b/src/components/selectable_list/selectable_list.vue
index e55a4ad3..d8938062 100644
--- a/src/components/selectable_list/selectable_list.vue
+++ b/src/components/selectable_list/selectable_list.vue
@@ -1,9 +1,9 @@
-
+
- toggle(checked, p.item)" />
+ toggle(checked, p.keyVal)" />