Skip to content

Commit

Permalink
auto focus input when opening RHN
Browse files Browse the repository at this point in the history
  • Loading branch information
getusha committed Nov 8, 2023
1 parent c2e4042 commit 73e2ae5
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 @@ -108,6 +108,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 73e2ae5

Please sign in to comment.