chore(react): finalize note title porting

This commit is contained in:
Elian Doran
2025-08-21 13:18:39 +03:00
parent bea352855a
commit 009fd63ce9
2 changed files with 1 additions and 39 deletions

View File

@@ -48,6 +48,7 @@ export default function NoteTitleWidget() {
useEffect(() => {
appContext.addBeforeUnloadListener(() => spacedUpdate.isAllSavedAndTriggerUpdate());
}, []);
useTriliumEventBeta([ "beforeNoteSwitch", "beforeNoteContextRemove" ], () => spacedUpdate.updateNowIfNecessary());
// Manage focus.
const textBoxRef = useRef<HTMLInputElement>(null);