Skip to content

Commit 1f3798b

Browse files
committed
fix #282
1 parent 760ef80 commit 1f3798b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/store/TableDataStore.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,14 @@ export class TableDataStore {
347347
searchTextArray.forEach( text => {
348348
let filterVal = text.toLowerCase();
349349
let targetVal = row[key];
350-
const { format, filterFormatted, formatExtraData } = this.colInfos[key];
351-
352-
if(filterFormatted && format) {
353-
targetVal = format(targetVal, row, formatExtraData);
354-
}
355-
if (targetVal.toString().toLowerCase().indexOf(filterVal) !== -1) {
356-
valid = true;
350+
const { format, filterFormatted, formatExtraData, hidden} = this.colInfos[key];
351+
if (!hidden) {
352+
if(filterFormatted && format) {
353+
targetVal = format(targetVal, row, formatExtraData);
354+
}
355+
if (targetVal.toString().toLowerCase().indexOf(filterVal) !== -1) {
356+
valid = true;
357+
}
357358
}
358359
});
359360
if (valid) break;

0 commit comments

Comments
 (0)