From 3cccd102ba543e02725d247893729e5c73b38295 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 20 Apr 2022 10:00:54 +0000 Subject: Add latest changes from gitlab-org/gitlab@14-10-stable-ee --- app/assets/javascripts/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/assets/javascripts/main.js') diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index b3cb93e74f2..8fc54be9c28 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -127,7 +127,8 @@ function deferredInitialisation() { // In case the user started searching before we bootstrapped, let's pass the search along. const initialSearchValue = searchInputBox.value; await initHeaderSearchApp(initialSearchValue); - searchInputBox.focus(); + // this is new #search input element. We need to re-find it. + document.querySelector('#search').focus(); }) .catch(() => {}); } else { -- cgit v1.2.1