From 8a56849d42570f4c3d2124fcfa65d8b302d247fc Mon Sep 17 00:00:00 2001 From: Rohini-Microsoft <168007985+Rohini-Microsoft@users.noreply.github.com> Date: Fri, 31 May 2024 14:21:06 +0530 Subject: [PATCH] fix: The Web UX is intentionally not revealing references when clicked to display (#1008) Co-authored-by: Arpit Gaur --- code/frontend/src/components/Answer/Answer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/frontend/src/components/Answer/Answer.tsx b/code/frontend/src/components/Answer/Answer.tsx index 3fb6e867d..1f689a20e 100644 --- a/code/frontend/src/components/Answer/Answer.tsx +++ b/code/frontend/src/components/Answer/Answer.tsx @@ -40,7 +40,7 @@ export const Answer = ({ if(chevronIsExpanded && refContainer.current){ refContainer.current.scrollIntoView({ behavior:'smooth'}); } - }, [isRefAccordionOpen]); + }, [chevronIsExpanded,isRefAccordionOpen]); const createCitationFilepath = (citation: Citation, index: number, truncate: boolean = false) => { let citationFilename = "";