Skip to content

Commit

Permalink
Merge pull request #3576 from GordonSmith/DGRID_COL_COLS
Browse files Browse the repository at this point in the history
fix(dgrid): Formatter cell renderer regression
  • Loading branch information
GordonSmith committed Apr 21, 2020
2 parents bb30694 + 58f7c1d commit cf444f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dgrid/src/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ export class ColumnFormat extends PropertyExt {
}
const value = valueColIdx ? row.__origRow[valueColIdx] : cell;
const background = palette(value, min, max);
const cellText = defaultFormatter.call(this, cell, row);
d3Select(cellElement)
.style("background", background)
.style("color", Palette.textColor(background))
.text(defaultFormatter.call(this, cell, row))
.text(cellText.html ? cellText.html : cell)
;
};
}
Expand Down

0 comments on commit cf444f0

Please sign in to comment.