Skip to content

Commit

Permalink
Merge pull request #185 from shariquerik/send-data-to-formatter1
Browse files Browse the repository at this point in the history
fix: send data of that cell to formatter
  • Loading branch information
shariquerik authored Dec 21, 2023
2 parents d29615b + 49cc051 commit f004460
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/filterRows.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f004460

Please sign in to comment.