Skip to content

Commit

Permalink
Fix element not being a function
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Jul 26, 2024
1 parent be4d3bb commit 6762ec8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
processing = false;

// Make first child of the preview focusable.
if ( preview.firstChild ) {
preview.firstChild.setAttribute( 'tabindex', '0' );
if ( preview.firstElementChild ) {
preview.firstElementChild.setAttribute( 'tabindex', '0' );
}
}
}
Expand Down

0 comments on commit 6762ec8

Please sign in to comment.