From f43b19960ccdd0920661812bbd89d9141828d5fb Mon Sep 17 00:00:00 2001 From: Arpit Date: Fri, 3 Dec 2021 16:06:24 +0530 Subject: [PATCH] fixes: text type columns of tables cannot be marked as "not editable" (#1502) * fix * isEditable set to true, run handleCellValueChange function --- frontend/src/Editor/Components/Table/Table.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/Editor/Components/Table/Table.jsx b/frontend/src/Editor/Components/Table/Table.jsx index 8dfac270b8..9e75de5ad0 100644 --- a/frontend/src/Editor/Components/Table/Table.jsx +++ b/frontend/src/Editor/Components/Table/Table.jsx @@ -400,7 +400,9 @@ export function Table({ readOnly={!column.isEditable} style={{ maxWidth: width, minWidth: width - 10 }} onBlur={(e) => { - handleCellValueChange(cell.row.index, column.key || column.name, e.target.value, cell.row.original); + if (column.isEditable) { + handleCellValueChange(cell.row.index, column.key || column.name, e.target.value, cell.row.original); + } }} defaultValue={cellValue} >