From 8205aafe65f60f8eb0dd57f520ed48ed9229ecc9 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 22 May 2025 11:20:58 +0500 Subject: [PATCH] web: fix flicker when programatically updating title --- apps/web/src/components/editor/title-box.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/editor/title-box.tsx b/apps/web/src/components/editor/title-box.tsx index 4fe47e2d9..968ce6a4d 100644 --- a/apps/web/src/components/editor/title-box.tsx +++ b/apps/web/src/components/editor/title-box.tsx @@ -62,7 +62,7 @@ function TitleBox(props: TitleBoxProps) { withSelectionPersist(inputRef.current, (input) => { input.value = title || ""; - requestAnimationFrame(() => resizeTextarea(input)); + setTimeout(() => resizeTextarea(input)); }); }, [sessionType, id, sessionTitle]);