Skip to content

Commit

Permalink
feat: fixed console error due to focus loss
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank-Tripathi32 committed Feb 11, 2025
1 parent 5496dbb commit 71d084e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ export default function useTabNav() {
return;
}

if ( ! hasMultiSelection() && ! getSelectedBlockClientId() ) {
return;
}

const isShift = event.shiftKey;
const direction = isShift ? 'findPrevious' : 'findNext';
const nextTabbable = focus.tabbable[ direction ]( event.target );
Expand Down

0 comments on commit 71d084e

Please sign in to comment.