Skip to content

Commit

Permalink
fix: fix client side sorting indicator issue
Browse files Browse the repository at this point in the history
Close #8
  • Loading branch information
paodb committed Jun 24, 2021
1 parent 881d64f commit 8119000
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 8119000

Please sign in to comment.