1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-30 15:35:09 +01:00

Fix auto-focus in ricerca Select

This commit is contained in:
Dasc3er 2021-09-09 16:27:17 +02:00
parent 50d28dde7b
commit e6750d7311

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 * TODO: Recheck with the select2 GH issue and remove once this is fixed on their side
*/ */
$(document).on('select2:open', () => { $(document).on('select2:open', () => {
document.querySelector('.select2-search__field').focus(); document.querySelector('.select2-container--open .select2-search__field').focus();
}); });