Skip to content

Commit

Permalink
Block Editor: Fix JS error in the 'useTabNav' hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Nov 19, 2024
1 parent 564f069 commit 52ebe57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function useTabNav() {
.focus();
}
// If we don't have any section blocks, focus the section root.
else {
else if ( sectionRootClientId ) {
container.current
.querySelector( `[data-block="${ sectionRootClientId }"]` )
.focus();
Expand Down

0 comments on commit 52ebe57

Please sign in to comment.