Skip to content

Commit

Permalink
Merge pull request #31290 from rushatgabhane/focus-search
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisl authored Nov 14, 2023
2 parents 5e7022d + d36aaea commit 5575dfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ function closeSidebarOnClickOutside(event) {

function openSidebar() {
document.getElementById('sidebar-layer').style.display = 'block';
document.getElementById('gsc-i-id1').focus();

// Make body unscrollable
const yAxis = document.documentElement.style.getPropertyValue('y-axis');
Expand Down

0 comments on commit 5575dfc

Please sign in to comment.