Skip to content

Commit

Permalink
Merge pull request #10 from paodb/sorting-fix
Browse files Browse the repository at this point in the history
fix: fix client side sorting indicator issue
  • Loading branch information
mlopezFC authored Aug 3, 2021
2 parents 881d64f + 8119000 commit 43debb4
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,16 @@ class EnhancedGridSorterElement extends GridSorterElement {
_onClick(e) {
if(this.sortable) {
super._onClick(e);
}
this._updateSorterDirection();
}
}

/** @private */
_updateSorterDirection() {
var sorter = this.querySelector("vaadin-grid-sorter");
if(sorter){
sorter.direction = this.direction;
}
}

connectedCallback () {
Expand Down

0 comments on commit 43debb4

Please sign in to comment.