From 49cc0513925a0ea070af9c4b323e6fe1177de1f8 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 21 Dec 2023 13:38:31 +0530 Subject: [PATCH] fix: send data of that cell to formatter --- src/filterRows.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/filterRows.js b/src/filterRows.js index bf38baa..18668bb 100644 --- a/src/filterRows.js +++ b/src/filterRows.js @@ -33,6 +33,7 @@ export default function filterRows(rows, filters, data) { function getFilterMethod(rows, data, filter) { const getFormattedValue = cell => { let formatter = CellManager.getCustomCellFormatter(cell); + data = data.getData(cell.rowIndex); if (formatter && cell.content) { cell.html = formatter(cell.content, rows[cell.rowIndex], cell.column, rows[cell.rowIndex], filter, data); return stripHTML(cell.html);