Skip to content

Build your personal knowledge base with Trilium Notes

fix(text): Title is not focused when creating a note via the launcher

SiriusXTa5841c142306
diff --git a/apps/client/src/widgets/type_widgets/text/EditableText.tsx b/apps/client/src/widgets/type_widgets/text/EditableText.tsx
index e5ea9c498e..3148eb8b91 100644
--- a/apps/client/src/widgets/type_widgets/text/EditableText.tsx
+++ b/apps/client/src/widgets/type_widgets/text/EditableText.tsx
@@ -286,7 +286,7 @@ function useWatchdogCrashHandling() {
const currentState = watchdog.state;
logInfo(`CKEditor state changed to ${currentState}`);
- if (currentState === "ready") {
+ if (currentState === "ready" && hasCrashed.current === true) {
hasCrashed.current = false;
watchdog.editor?.focus();
}