mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: fix flicker when programatically updating title
This commit is contained in:
@@ -62,7 +62,7 @@ function TitleBox(props: TitleBoxProps) {
|
||||
|
||||
withSelectionPersist(inputRef.current, (input) => {
|
||||
input.value = title || "";
|
||||
requestAnimationFrame(() => resizeTextarea(input));
|
||||
setTimeout(() => resizeTextarea(input));
|
||||
});
|
||||
}, [sessionType, id, sessionTitle]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user