Skip to content

Commit

Permalink
Rollback a change in UndoManager to avoid breaking style updates in u…
Browse files Browse the repository at this point in the history
…ndo/redo (#6157)

Rollback a change in UndoManager to avoid breaking style update undo/redo
  • Loading branch information
artf authored Sep 19, 2024
1 parent 7e78a61 commit 8d4c850
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/undo_manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,14 @@ export default class UndoManagerModule extends Module<UndoManagerConfig & { name
changedMap.set(object, before);
}
const opt = opts || v || {};
if (hasSkip(opt)) {

if (opt.noUndo) {
setTimeout(() => {
changedMap.delete(object);
});
}

if (hasSkip(opt)) {
return;
} else {
const after = object.toJSON({ fromUndo });
Expand Down

0 comments on commit 8d4c850

Please sign in to comment.