fix table row not watching item #116 #113 (#143)

This commit is contained in:
Marcos Moura 2016-12-05 00:57:54 -02:00 committed by GitHub
parent 7a8d15b3b4
commit 9a80a37609

View file

@ -40,6 +40,12 @@
};
}
},
watch: {
mdItem(newValue, oldValue) {
this.parentTable.data[this.index] = this.mdItem;
this.handleMultipleSelection(newValue === oldValue);
}
},
methods: {
setSelectedRow(value, index) {
if (value) {
@ -94,11 +100,6 @@
}
}
},
watch: {
data() {
this.parentTable.data[this.index] = this.item;
}
},
mounted() {
this.parentTable = getClosestVueParent(this.$parent, 'md-table');