diff --git a/docs/assets/js/main.js b/docs/assets/js/main.js index aebd0f5d4864..73a34b2f9331 100644 --- a/docs/assets/js/main.js +++ b/docs/assets/js/main.js @@ -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) {