django-autocomplete-light
django-autocomplete-light copied to clipboard
Incompatibility with select2-bootstrap-5-theme. Clear button not appearing.
trafficstars
When using select2-bootstrap-5-theme package for theming, clear button doesn't appear. This is clearly a compatibility issue between these two package since DAL in isolation works fine and same for select2-bootstrap-5.
I don't know if it's DAL issue or select2-bootstrap-5 issue so I created a issue there too.
Steps to reproduce:
- Setup DAL in a new Django project.
- Add select2-bootstrap-5 css.
- Set "data-bootstrap-5" and "data-allow-clear" in widget's data attributes.
autocomplete.ModelSelect2(
url='<View url>',
attrs={
'data-theme': 'bootstrap-5',
'data-allow-clear': True
},
)

I created a sample repository that shows the issue.