From cb4e9aaa1036e6593a3e6dd5ea2ecde90f1393d6 Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Tue, 14 Nov 2023 11:12:43 +0530 Subject: [PATCH 1/2] focus search --- docs/assets/js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/assets/js/main.js b/docs/assets/js/main.js index aebd0f5d4864..4641fae96e08 100644 --- a/docs/assets/js/main.js +++ b/docs/assets/js/main.js @@ -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'); From d36aaea8ed693e6d4e0fa625327a7ce7e154ca2d Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Tue, 14 Nov 2023 08:50:14 +0300 Subject: [PATCH 2/2] Update docs/assets/js/main.js Co-authored-by: Francois Laithier --- docs/assets/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets/js/main.js b/docs/assets/js/main.js index 4641fae96e08..c16e41bc9dca 100644 --- a/docs/assets/js/main.js +++ b/docs/assets/js/main.js @@ -101,7 +101,7 @@ function closeSidebarOnClickOutside(event) { function openSidebar() { document.getElementById('sidebar-layer').style.display = 'block'; - document.getElementById('gsc-i-id1').focus() + document.getElementById('gsc-i-id1').focus(); // Make body unscrollable const yAxis = document.documentElement.style.getPropertyValue('y-axis');