Skip to content

Commit

Permalink
focus search
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Nov 14, 2023
1 parent 5e7022d commit cb4e9aa
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 cb4e9aa

Please sign in to comment.