fix: Dont save if value is same
This commit is contained in:
parent
cb2729424b
commit
d2c4e21cca
@ -517,9 +517,12 @@ export default class CellManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
promise = valuePromise.then((value) => {
|
promise = valuePromise.then((value) => {
|
||||||
const done = editor.setValue(value, rowIndex, col);
|
|
||||||
const oldValue = this.getCell(colIndex, rowIndex).content;
|
const oldValue = this.getCell(colIndex, rowIndex).content;
|
||||||
|
|
||||||
|
if (oldValue === value) return;
|
||||||
|
|
||||||
|
const done = editor.setValue(value, rowIndex, col);
|
||||||
|
|
||||||
// update cell immediately
|
// update cell immediately
|
||||||
this.updateCell(colIndex, rowIndex, value);
|
this.updateCell(colIndex, rowIndex, value);
|
||||||
$cell.focus();
|
$cell.focus();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user