Skip to content

Commit

Permalink
sorting bug fix related to new paper-datatable-column behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Mulder committed Dec 12, 2015
1 parent b61fe4b commit a47cd3f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions paper-datatable-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,10 @@
if(this.dataSource) {
ev.preventDefault();
this.firstPage();
var sortedColumn = Polymer.dom(this).querySelector('paper-datatable-column[sorted]');
if(sortedColumn){
this._sortProperty = sortedColumn.property;
this._sortDirection = sortedColumn.sortDirection;
}
console.log(ev.detail);
this._sortProperty = ev.detail.sort.property;
this._sortDirection = ev.detail.sort.direction;

//this.retrieveVisibleData();
}
},
Expand Down

0 comments on commit a47cd3f

Please sign in to comment.