diff --git a/src/filterRows.js b/src/filterRows.js index 78f6d26..11b0aa3 100644 --- a/src/filterRows.js +++ b/src/filterRows.js @@ -68,9 +68,10 @@ function getFilterMethod(rows, allData, filter) { contains(keyword, cells) { return cells .filter(cell => { - const hay = stringCompareValue(cell); const needle = (keyword || '').toLowerCase(); - return !needle || hay.includes(needle); + return !needle || + (cell.content || '').toLowerCase().includes(needle) || + stringCompareValue(cell).includes(needle); }) .map(cell => cell.rowIndex); },