Skip to content

Commit

Permalink
Fix primefaces#6735: Datatable respect editMode to determine if editable
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jun 7, 2024
1 parent 4706144 commit 0fe1c7b
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 0fe1c7b

Please sign in to comment.