mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-07-09 20:09:36 +02:00
web: editor transactions with ignoreEdit will no longer trigger save
This commit is contained in:
@@ -329,7 +329,8 @@ function TipTap(props: TipTapProps) {
|
||||
|
||||
const preventSave = transaction?.getMeta("preventSave") as boolean;
|
||||
const ignoreEdit = transaction.getMeta("ignoreEdit") as boolean;
|
||||
if (preventSave || !editor.isEditable || !onChange) return;
|
||||
if (ignoreEdit || preventSave || !editor.isEditable || !onChange)
|
||||
return;
|
||||
|
||||
if (!autoSave.current) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user