Skip to content

Commit

Permalink
fix limit filter
Browse files Browse the repository at this point in the history
  • Loading branch information
thehitechpanky committed Apr 18, 2020
1 parent 1ddd1c5 commit 0fbed66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Bootstrap

# CDN

<script src="https://cdn.jsdelivr.net/gh/TaxHeal-in/[email protected].4/html.js"></script>
<script src="https://cdn.jsdelivr.net/gh/TaxHeal-in/[email protected].4/table.js"></script>
<script src="https://cdn.jsdelivr.net/gh/TaxHeal-in/[email protected].5/html.js"></script>
<script src="https://cdn.jsdelivr.net/gh/TaxHeal-in/[email protected].5/table.js"></script>

# How to use

Expand Down
8 changes: 6 additions & 2 deletions table.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ class DynamicTable {
let { addFilter, addLimit } = this.paramObject;
this._addTableDataRows();
if (addFilter) {
this.filterNode.onkeyup = this._addTableDataRows;
this.filterNode.onkeyup = () => {
this._addTableDataRows();
}
}
if (addLimit) {
this.limitNode.onchange = this._addTableDataRows;
this.limitNode.onchange = () => {
this._addTableDataRows();
}
}
}

Expand Down

0 comments on commit 0fbed66

Please sign in to comment.