fix: Use regular debouncing for tab indentations (#2959) [skip e2e]

This commit is contained in:
Antonella Sgarlatta 2025-11-20 21:32:46 -03:00 committed by GitHub
parent 3fe500bd95
commit 3190a27831
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -253,11 +253,16 @@ export const PlainEditor = forwardRef<PlainEditorInterface, Props>(
setEditorText(editor.value)
void controller.saveAndAwaitLocalPropagation({
text: editor.value,
bypassDebouncer: true,
isUserModified: true,
})
setIsPendingLocalPropagation(true)
void controller
.saveAndAwaitLocalPropagation({
text: editor.value,
isUserModified: true,
})
.then(() => {
setIsPendingLocalPropagation(false)
})
},
})