diff --git a/README.md b/README.md index 54c8870..eb0b2fd 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Bootstrap # CDN - - + + # How to use diff --git a/table.js b/table.js index cb3294e..bf0c7d2 100644 --- a/table.js +++ b/table.js @@ -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(); + } } }