fix: Dont save if value is same

This commit is contained in:
Shariq Ansari 2022-06-08 19:10:41 +05:30
parent cb2729424b
commit d2c4e21cca

View File

@ -517,9 +517,12 @@ export default class CellManager {
}
promise = valuePromise.then((value) => {
const done = editor.setValue(value, rowIndex, col);
const oldValue = this.getCell(colIndex, rowIndex).content;
if (oldValue === value) return;
const done = editor.setValue(value, rowIndex, col);
// update cell immediately
this.updateCell(colIndex, rowIndex, value);
$cell.focus();