Skip to content

Commit

Permalink
dispatch the value on sort events, with details allowing to read the …
Browse files Browse the repository at this point in the history
…sort+reverse method

closes #115
  • Loading branch information
Fil committed May 2, 2022
1 parent 89c81dc commit a9cd1a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ function initialize(
while (tbody.firstChild) tbody.firstChild.remove();
appendRows(0, n = minlengthof(rows * 2));
anchor = head = null;
root.dispatchEvent(new CustomEvent('input', {bubbles: true, detail: {sort: column, reverse: currentReverse}}));
reinput();
}

Expand Down

0 comments on commit a9cd1a6

Please sign in to comment.