yourlabs / django-autocomplete-light

A fresh approach to autocomplete implementations, specially for Django. Status: v4 alpha, v3 stable, v2 & v1 deprecated.
https://django-autocomplete-light.readthedocs.io
MIT License
1.79k stars 467 forks source link

Focus on single input not working on formtools wizard #1284

Open davy39 opened 2 years ago

davy39 commented 2 years ago

Hello, I'm very happy with DAL, but I'm facing a small issue now :

I'm working on a multi-steps wizard form based on django-formtools.

When a autocomplete.ModelSelect2 widget is not on the first step of the wizard, it cannot automatically focus on select2-search--dropdown / select2-search__field after clicking on a select2-selection--single input.

Maybe focus selection method is based on reloading html which get only the first step (not sending POST {"wizard_goto_step": '2'} for example) ?

Does anyone know any workaround ?

Thanks for your help.

bpepple commented 2 years ago

This looks like it might be a duplicate of #1283