Skip to content

Commit

Permalink
Merge pull request #186 from shariquerik/send-data-to-formatter2
Browse files Browse the repository at this point in the history
fix: getdata from datamanager if data is datamanager object
  • Loading branch information
shariquerik committed Dec 21, 2023
2 parents f004460 + b8a1af2 commit 1979641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/filterRows.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ 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 (data && data.constructor.name == "DataManager") {
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 1979641

Please sign in to comment.