diff --git a/src/cellmanager.js b/src/cellmanager.js index a796297..23c6b1d 100644 --- a/src/cellmanager.js +++ b/src/cellmanager.js @@ -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();