Skip to content

Commit

Permalink
Update visible rows when rows prop updates
Browse files Browse the repository at this point in the history
  • Loading branch information
eblanshey committed Jan 21, 2017
1 parent adc5c77 commit 59fc7e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vue-datatable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ module.exports = {
sort_by: null,
sort_dir: null,
}},
watch: {
rows: function(val){
this.updateRows(val);
}
},
computed: {
column_props: function(){
var i = 0;
Expand Down Expand Up @@ -154,4 +159,4 @@ module.exports = {
this.visible_rows = this.sorted_rows;
}
}
</script>
</script>

0 comments on commit 59fc7e8

Please sign in to comment.