diff --git a/src/renderer/src/components/right-sidebar/ChecksPanel.tsx b/src/renderer/src/components/right-sidebar/ChecksPanel.tsx index 9b8f77a4a3b..fe8f42a8116 100644 --- a/src/renderer/src/components/right-sidebar/ChecksPanel.tsx +++ b/src/renderer/src/components/right-sidebar/ChecksPanel.tsx @@ -168,7 +168,14 @@ export default function ChecksPanel(): React.JSX.Element { } }, []) - useEffect(() => clearTitleInputFocusTimer, [clearTitleInputFocusTimer]) + const setChecksPanelContentRef = useCallback( + (node: HTMLDivElement | null) => { + if (node === null) { + clearTitleInputFocusTimer() + } + }, + [clearTitleInputFocusTimer] + ) // Why: the sidebar no longer uses key={activeWorktreeId} to force a full // remount on worktree switch (that caused an IPC storm on Windows). Reset @@ -1585,7 +1592,7 @@ export default function ChecksPanel(): React.JSX.Element { } return ( -