From 1631de67ea89a3a307356ba4b422a6796d95f5ce Mon Sep 17 00:00:00 2001 From: wandji Date: Mon, 11 Sep 2023 14:29:27 +0100 Subject: [PATCH] Fix issue opening dropdown when typing [SCI-9172] (#6171) --- app/assets/javascripts/sitewide/dropdown_selector.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/sitewide/dropdown_selector.js b/app/assets/javascripts/sitewide/dropdown_selector.js index 890cebc38..b06406445 100644 --- a/app/assets/javascripts/sitewide/dropdown_selector.js +++ b/app/assets/javascripts/sitewide/dropdown_selector.js @@ -381,6 +381,9 @@ var dropdownSelector = (function() { || (config.selectKeys || []).includes(e.keyCode)) { return; } + if (!dropdownContainer.hasClass('open')) { + dropdownContainer.find('.input-field').focus(); + } e.stopPropagation(); loadData(selectElement, dropdownContainer); })