improvement(undo-redo): expand undo-redo store to store 100 ops instead of 15 (#2036)

* improvement(undo-redo): expand undo-redo store to store 100 ops instead of 15

* prevent undo-redo from interfering with subblock browser text undo
This commit is contained in:
Waleed
2025-11-17 18:00:12 -08:00
committed by GitHub
parent 98908dbfb9
commit 3d1feab507
2 changed files with 2 additions and 1 deletions

View File

@@ -434,6 +434,7 @@ const WorkflowContent = React.memo(() => {
activeElement?.hasAttribute('contenteditable')
if (isEditableElement) {
event.stopPropagation()
return
}

View File

@@ -13,7 +13,7 @@ import type {
} from './types'
const logger = createLogger('UndoRedoStore')
const DEFAULT_CAPACITY = 15
const DEFAULT_CAPACITY = 100
function getStackKey(workflowId: string, userId: string): string {
return `${workflowId}:${userId}`