Skip to content

Commit

Permalink
Fix wenzhixin#3487, wenzhixin#3486: return when fieldIndex is -1
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Dec 8, 2017
1 parent 0633903 commit 78f1c32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -1983,6 +1983,10 @@
var field = that.header.fields[i],
fieldIndex = $.inArray(field, that.getVisibleFields());

if (fieldIndex === -1) {
return;
}

if (that.options.detailView && !that.options.cardView) {
fieldIndex += 1;
}
Expand Down

0 comments on commit 78f1c32

Please sign in to comment.