Skip to content

Commit

Permalink
remove focus updating
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Jan 26, 2024
1 parent 31ad87b commit 32d0066
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/components/src/tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32d0066

Please sign in to comment.