From 0fe1c7b877ae5977f904376c341ed6b9d4e8322d Mon Sep 17 00:00:00 2001 From: melloware Date: Fri, 7 Jun 2024 07:55:09 -0400 Subject: [PATCH] Fix #6735: Datatable respect editMode to determine if editable --- components/lib/datatable/BodyCell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/datatable/BodyCell.js b/components/lib/datatable/BodyCell.js index 2ed51df137..3c6e170c7b 100644 --- a/components/lib/datatable/BodyCell.js +++ b/components/lib/datatable/BodyCell.js @@ -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 = () => {