fix(web): stop writing choice-card visibility into a ref during render
Staging lint failed on react-hooks/refs after the jump overlay fix. Keep the latest card-open flag in the existing layout effect so ESLint passes and the overlay still stays off the choice card. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -983,8 +983,8 @@ export function RectificationAgenticChat(props: RectificationAgenticChatProps) {
|
||||
&& !readonly
|
||||
&& regeneratingMessageKey === null,
|
||||
);
|
||||
choiceCardsOpen.current = showChoiceCards;
|
||||
useLayoutEffect(() => {
|
||||
choiceCardsOpen.current = showChoiceCards;
|
||||
updateFollowState();
|
||||
}, [showChoiceCards, updateFollowState]);
|
||||
const showSelectionCards = Boolean(
|
||||
|
||||
Reference in New Issue
Block a user