Perform undo until change was applied

This commit is contained in:
Kevin Jahns
2021-04-13 13:04:49 +02:00
parent c67428d715
commit 9e98fec504
2 changed files with 32 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ const popStackItem = (undoManager, stack, eventType) => {
performedChange = true
}
}
result = stackItem
result = performedChange ? stackItem : null
}
transaction.changed.forEach((subProps, type) => {
// destroy search marker if necessary