Fix double id bug on combobox

This commit is contained in:
Rachid Mrad 2024-08-28 13:14:39 -04:00
parent b2ab1495ab
commit 539824cfa3
No known key found for this signature in database

View file

@ -7,7 +7,9 @@ for now we just carry the attribute to both the parent element and the select.
<div class="usa-combo-box"
{% for name, value in widget.attrs.items %}
{{ name }}="{{ value }}"
{% if name != 'id' %}
{{ name }}="{{ value }}"
{% endif %}
{% endfor %}
>
{% include "django/forms/widgets/select.html" %}