fundon
2024-09-06 03:50:05 +00:00
parent 702c03539f
commit 7d93fae1dd

View File

@@ -177,9 +177,9 @@ export class Editor extends Entity {
});
if (focusAt$.value === null && docTitle) {
const title = docTitle.querySelector<
HTMLElement & { inlineEditor: InlineEditor }
HTMLElement & { inlineEditor: InlineEditor | null }
>('rich-text');
title?.inlineEditor.focusEnd();
title?.inlineEditor?.focusEnd();
}
const subscription = focusAt$