fixes: text type columns of tables cannot be marked as "not editable" (#1502)

* fix

* isEditable set to true, run handleCellValueChange function
This commit is contained in:
Arpit 2021-12-03 16:06:24 +05:30 committed by GitHub
parent 05ac0e470e
commit f43b19960c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}
></textarea>