mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
Compare with default value of string cells before update
This commit is contained in:
parent
f395541b0f
commit
8951f89792
1 changed files with 6 additions and 2 deletions
|
|
@ -282,11 +282,15 @@ export function Table({
|
|||
type="text"
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter') {
|
||||
handleCellValueChange(cell.row.index, column.key || column.name, e.target.value, cell.row.original);
|
||||
if(e.target.defaultValue !== e.target.value) {
|
||||
handleCellValueChange(cell.row.index, column.key || column.name, e.target.value, cell.row.original);
|
||||
}
|
||||
}
|
||||
}}
|
||||
onBlur={(e) => {
|
||||
handleCellValueChange(cell.row.index, column.key || column.name, e.target.value, cell.row.original);
|
||||
if(e.target.defaultValue !== e.target.value) {
|
||||
handleCellValueChange(cell.row.index, column.key || column.name, e.target.value, cell.row.original);
|
||||
}
|
||||
}}
|
||||
className="form-control-plaintext form-control-plaintext-sm"
|
||||
defaultValue={cellValue}
|
||||
|
|
|
|||
Loading…
Reference in a new issue