From 32d006600beaa91802da146f74f06e0da25bd17a Mon Sep 17 00:00:00 2001 From: chad1008 <13856531+chad1008@users.noreply.github.com> Date: Fri, 26 Jan 2024 17:48:12 -0500 Subject: [PATCH] remove focus updating --- packages/components/src/tabs/index.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/components/src/tabs/index.tsx b/packages/components/src/tabs/index.tsx index bf857526dc7900..7497043f2a5167 100644 --- a/packages/components/src/tabs/index.tsx +++ b/packages/components/src/tabs/index.tsx @@ -179,13 +179,6 @@ function Tabs( { typeof previousSelectedId === 'string' && previousSelectedId === activeElement?.id; - // If the previously selected tab had focus when the selection changed, - // move focus to the newly selected tab. - if ( previousSelectedTabHadFocus && selectedId !== activeElement.id ) { - move( selectedId ); - return; - } - // If a tab other than the one previously selected had focus when the // selection changed, update the activeId to the currently focused tab. // The activeId controls how arrow key navigation behaves. Keeping them