diff --git a/src/TableHeader.js b/src/TableHeader.js index 3cafeed..5c41f09 100644 --- a/src/TableHeader.js +++ b/src/TableHeader.js @@ -171,7 +171,7 @@ class TableHeader extends Component { doEventList(trs,action){ - if (trs && Array.isArray(trs) && action) { + if (trs && HTMLCollection.prototype.isPrototypeOf(trs) && action) { for (let index = 0; index < trs.length; index++) { action(trs[index]); }