Skip to content

Commit

Permalink
Add simple fix for undo/redo with action menu open
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixeliot committed Aug 4, 2022
1 parent f2ecfc7 commit c272a32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/frontend/handler/history.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
[e]
(util/stop e)
(state/set-editor-op! :undo)
(state/clear-editor-action!)
(editor/save-current-block!)
(let [{:keys [editor-cursor]} (undo-redo/undo)]
(restore-cursor! editor-cursor))
Expand All @@ -30,6 +31,7 @@
[e]
(util/stop e)
(state/set-editor-op! :redo)
(state/clear-editor-action!)
(let [{:keys [editor-cursor]} (undo-redo/redo)]
(restore-cursor! editor-cursor))
(state/set-editor-op! nil))

0 comments on commit c272a32

Please sign in to comment.