mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 08:28:35 +00:00
Fix :: Closing of textarea ontype Table widget (#4549)
* fix :: closing of textarea ontype * fix :: bug not able to clear value
This commit is contained in:
parent
2dd9fef0b9
commit
557073df75
1 changed files with 3 additions and 3 deletions
|
|
@ -231,12 +231,12 @@ export default function generateColumnsData({
|
|||
handleCellValueChange(cell.row.index, column.key || column.name, e.target.value, cell.row.original);
|
||||
}
|
||||
}}
|
||||
onChange={(e) => {
|
||||
if (column.isEditable) {
|
||||
onKeyDown={(e) => {
|
||||
e.persist();
|
||||
if (e.key === 'Enter' && column.isEditable) {
|
||||
handleCellValueChange(cell.row.index, column.key || column.name, e.target.value, cell.row.original);
|
||||
}
|
||||
}}
|
||||
value={cellValue}
|
||||
defaultValue={cellValue}
|
||||
></textarea>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue