Skip to content

Commit

Permalink
Fix #5109: Invalid attribute warning
Browse files Browse the repository at this point in the history
  • Loading branch information
habubey committed Oct 18, 2023
1 parent 18b8c05 commit c2f1fac
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions components/lib/datatable/BodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,16 +618,12 @@ export const BodyCell = React.memo((props) => {
);
} else if (rowReorder) {
const showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, { rowIndex: props.rowIndex, props: props.tableProps }) : true;

const rowReorderIconClassName = 'p-datatable-reorderablerow-handle';
const rowReorderIconProps = mergeProps(
{
className: rowReorderIconClassName
},
getColumnProp('rowReorderIcon')
);
const rowReorderIcon = getColumnProp('rowReorderIcon') || <BarsIcon {...rowReorderIconProps} />;

content = showReorder && IconUtils.getJSXIcon(rowReorderIcon, { ...rowReorderIconProps }, { props });
const rowReorderIcon = getColumnProp('rowReorderIcon') || <BarsIcon className={rowReorderIconClassName} />;

content = showReorder && IconUtils.getJSXIcon(rowReorderIcon, { className: rowReorderIconClassName }, { props });
} else if (expander) {
const rowTogglerIconProps = mergeProps(
{
Expand Down

0 comments on commit c2f1fac

Please sign in to comment.