fix(editor): incorrect auto save when paste batch blocks

This commit is contained in:
charlie
2023-12-10 21:26:34 +08:00
committed by Tienson Qin
parent 6fab02581d
commit ea196dfe67
2 changed files with 4 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
(when (and
(not (contains? #{:insert :indent-outdent :auto-save :undo :redo :delete} (state/get-editor-op)))
;; Don't trigger auto-save if the latest op is undo or redo
(not (contains? #{:undo :redo} (state/get-editor-latest-op))))
(not (contains? #{:undo :redo :paste-blocks} (state/get-editor-latest-op))))
(editor-handler/save-block! (get-state) value)))
state)