diff --git a/src/undo_manager/index.js b/src/undo_manager/index.js index c5236cd5e..b8164db20 100644 --- a/src/undo_manager/index.js +++ b/src/undo_manager/index.js @@ -73,9 +73,10 @@ export default () => { on(object, v, opts) { !beforeCache && (beforeCache = object.previousAttributes()); const opt = opts || v || {}; - setTimeout(() => { - beforeCache = null; - }); + opt.noUndo && + setTimeout(() => { + beforeCache = null; + }); if (hasSkip(opt)) { return; } else {