Describe the bug
The custom groupRender (property of column) is not called when JS evaluate a cell value as false, like boolean value false or number value 0.
The problem is in:
The 'if' checks props.value. When props.value === false or props.value === 0 the result is false and groupRender is not called. I think is better use (props.value === undefined || props.value === null) or just props.value == null.
To Reproduce
Just create a groupRender for a column of type boolean and fill some cells with false value. Then group by this column.
column.groupRender = (value) => value ? 'yes' : 'no';
Expected behavior
Custom groupRender should be called and group render must render 'yes' and 'no'. But'll render 'yes' and -.
Describe the bug
The custom groupRender (property of column) is not called when JS evaluate a cell value as false, like boolean value
falseor number value0.The problem is in:
core/src/components/MTableCell/cellUtils.js
Line 57 in 9f13231
The 'if' checks
props.value. Whenprops.value === falseorprops.value === 0the result is false and groupRender is not called. I think is better use(props.value === undefined || props.value === null)or justprops.value == null.To Reproduce
Just create a groupRender for a column of type boolean and fill some cells with
falsevalue. Then group by this column.Expected behavior
Custom groupRender should be called and group render must render 'yes' and 'no'. But'll render 'yes' and -.