Skip to content

Commit

Permalink
Merge pull request #31039 from getusha/help-site-auto-focus
Browse files Browse the repository at this point in the history
Fix: auto focus input when opening RHN
  • Loading branch information
robertjchen authored Nov 14, 2023
2 parents 5575dfc + 59694c1 commit 2c7062b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ function openSidebar() {
body.style.position = 'fixed';
body.style.top = `-${yAxis}`;

document.getElementById('gsc-i-id1').focus();

// Close the sidebar when clicking sidebar layer (outside the sidebar search)
const sidebarLayer = document.getElementById('sidebar-layer');
if (sidebarLayer) {
Expand Down

0 comments on commit 2c7062b

Please sign in to comment.