web: fix flicker when programatically updating title

This commit is contained in:
Abdullah Atta
2025-05-22 11:20:58 +05:00
parent 8e4e9c9e4c
commit 8205aafe65

View File

@@ -62,7 +62,7 @@ function TitleBox(props: TitleBoxProps) {
withSelectionPersist(inputRef.current, (input) => {
input.value = title || "";
requestAnimationFrame(() => resizeTextarea(input));
setTimeout(() => resizeTextarea(input));
});
}, [sessionType, id, sessionTitle]);