Fix auto-focus in ricerca Select

This commit is contained in:
Dasc3er 2021-09-09 16:27:17 +02:00
parent 50d28dde7b
commit e6750d7311
1 changed files with 1 additions and 1 deletions

View File

@ -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();
});