Skip to content

Commit

Permalink
fix(renderer): only add row builder to headers or it will override th…
Browse files Browse the repository at this point in the history
…e col one lol
  • Loading branch information
scamden committed Jan 25, 2018
1 parent 9170251 commit c76288e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class ReactGrid extends Component<IGridProps, IGridState> {
descriptor.builder = newDescriptor.builder || this.cellRendererBuilder;
}

if ((dim.rowColModel as RowModel).row !== undefined) {
if ((dim.rowColModel as RowModel).row !== undefined && newDescriptor.header) {
descriptor.builder = newDescriptor.builder || this.headerCellRendererBuilder;
}
return descriptor;
Expand Down

0 comments on commit c76288e

Please sign in to comment.