fix: sync focused suggestion index when clicking Line N pill

This commit is contained in:
Schwitzz
2026-10-30 12:22:10 -05:00
parent 2940e3c9aa
commit f40f23dcb9
+1
View File
@@ -1470,6 +1470,7 @@ export function AISidebar({ fullPage = false }: AISidebarProps) {
title="Click to highlight this line on the writing screen" title="Click to highlight this line on the writing screen"
onClick={(e) => { onClick={(e) => {
e.stopPropagation(); e.stopPropagation();
setFocusedIndex(idx);
handleHighlightLine(sg.lineNumber ?? 1); handleHighlightLine(sg.lineNumber ?? 1);
}} }}
> >