Clean option no works properly
OVarLaz opened this issue · comments
Olenka Vargas Lazarte commented
Describe the bug
Visual bug in django-select2 option, when I try to clean the content in the box, removing all items, but if I select a new, I get a blank space. I use django-select2==7.2.0 (lastest version)
Exception & Traceback
If I click 2 times in the "x", the content is cleaned completely
views.py
especialidadesFormset = CentroInvestigacionEspecialidadForm(prefix='especialidades')
reg.html
<div class="col-12">
{{ especialidadesFormset.management_form }}
{% for form in especialidadesFormset %}
{{ especialidadesFormset }}
{% endfor %}
</div>
To Reproduce
Steps to reproduce the behavior:
- Go to the view with the select2 field
- Add/select one or more options
- Remove all items, clicking in "x"
- Select another item of the list
- Will see a blank selection before the last selected
Expected behavior
It must not show that blank space, with my selection
Johannes Maron commented
Hi @OVarLaz the CentralInvestigationEspecialidad
model with me as well? Best Joe
Johannes Maron commented
This repo has moved, please address your issue at https://github.com/codingjoe/django-select2 Thanks!