Skip to content

Commit

Permalink
#2300 Readonly table row should not have delete icon
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Gokhale <[email protected]>
  • Loading branch information
nmgokhale committed Jan 14, 2025
1 parent 6f6100f commit 4cdf946
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ export default class AbstractTable extends React.Component {
const cell = this.buildChildItem(propertyName, rowIndex, tableState);
columns.push(cell);
}
if (this.props.control.rowSelection === ROW_SELECTION.SINGLE) {
if (this.props.control.rowSelection === ROW_SELECTION.SINGLE && !this.isReadonlyTable()) {
const toolTip = PropertyUtils.formatMessage(this.reactIntl, MESSAGE_KEYS.TABLE_DELETEICON_TOOLTIP);
const tooltipId = "tooltip-delete-row";
const deleteOption = (
Expand Down

0 comments on commit 4cdf946

Please sign in to comment.