From d7238ef817dcdba6d978cae6db9748e646fb6cea Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Wed, 12 Jun 2024 15:20:18 +0530 Subject: [PATCH] fix: document history navigation --- app/components/List/Item.tsx | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/app/components/List/Item.tsx b/app/components/List/Item.tsx index 1759826bd4..c1fd64a551 100644 --- a/app/components/List/Item.tsx +++ b/app/components/List/Item.tsx @@ -44,7 +44,10 @@ const ListItem = ( } const [tabIndex, focused, handleKeyDown, handleClick, handleFocus] = - useRovingTabIndex(itemRef as React.RefObject, false); + useRovingTabIndex( + itemRef as React.RefObject, + to ? false : true + ); useFocusEffect(focused, itemRef as React.RefObject); @@ -99,20 +102,7 @@ const ListItem = ( } return ( - { - if (rest.onClick) { - rest.onClick(ev); - } - handleClick(); - }} - > + {content(false)} );