Skip to content

Commit

Permalink
Fix #6735: Datatable respect editMode to determine if editable (#6736)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jun 7, 2024
1 parent 296f7c1 commit 93163ad
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 @@ -55,7 +55,7 @@ export const BodyCell = React.memo((props) => {
const editingKey = props.dataKey ? (props.rowData && props.rowData[props.dataKey]) || props.rowIndex : props.rowIndex;

const isEditable = () => {
return getColumnProp('editor');
return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
};

const cellEditValidateOnClose = () => {
Expand Down

0 comments on commit 93163ad

Please sign in to comment.