fix: use HTMLCollection to judge instead of Array

This commit is contained in:
gx 2021-03-21 17:50:59 +08:00
parent a2024a9827
commit 4db60bd1b6
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}