From e6750d731134e08ed8b15223613004e8b8a263a8 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Thu, 9 Sep 2021 16:27:17 +0200 Subject: [PATCH] Fix auto-focus in ricerca Select --- assets/src/js/base/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/src/js/base/custom.js b/assets/src/js/base/custom.js index 24c8de858..85abe2095 100644 --- a/assets/src/js/base/custom.js +++ b/assets/src/js/base/custom.js @@ -106,5 +106,5 @@ $(document).ready(function () { * TODO: Recheck with the select2 GH issue and remove once this is fixed on their side */ $(document).on('select2:open', () => { - document.querySelector('.select2-search__field').focus(); + document.querySelector('.select2-container--open .select2-search__field').focus(); });