Skip to content

Commit

Permalink
Fixed #2576 - Body cell is not assigned with the className property o…
Browse files Browse the repository at this point in the history
…f Column
  • Loading branch information
mertsincan committed Jan 12, 2022
1 parent 622af3a commit 6c12fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/BodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ export class BodyCell extends Component {
const align = this.getColumnProp('align');
const value = this.resolveFieldData();
const cellClassName = ObjectUtils.getPropValue(this.props.cellClassName, value, { props: this.props.tableProps, rowData: this.props.rowData, column: this.props.column });
const className = classNames(this.getColumnProp('bodyClassName'), this.getColumnProp('class'), cellClassName, {
const className = classNames(this.getColumnProp('bodyClassName'), this.getColumnProp('className'), cellClassName, {
'p-selection-column': selectionMode !== null,
'p-editable-column': editor,
'p-cell-editing': editor && this.state.editing,
Expand Down

0 comments on commit 6c12fcb

Please sign in to comment.