From 93163ada1260fcdc7350e438d10a9ffa36b3d1d4 Mon Sep 17 00:00:00 2001 From: Melloware Date: Fri, 7 Jun 2024 08:05:43 -0400 Subject: [PATCH] Fix #6735: Datatable respect editMode to determine if editable (#6736) --- 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 = () => {