forked from JavaScript/bee-table
fix: use HTMLCollection to judge instead of Array
This commit is contained in:
parent
a2024a9827
commit
4db60bd1b6
|
@ -171,7 +171,7 @@ class TableHeader extends Component {
|
||||||
|
|
||||||
|
|
||||||
doEventList(trs,action){
|
doEventList(trs,action){
|
||||||
if (trs && Array.isArray(trs) && action) {
|
if (trs && HTMLCollection.prototype.isPrototypeOf(trs) && action) {
|
||||||
for (let index = 0; index < trs.length; index++) {
|
for (let index = 0; index < trs.length; index++) {
|
||||||
action(trs[index]);
|
action(trs[index]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue