mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 20:49:41 +02:00
Fix double id bug on combobox
This commit is contained in:
parent
b2ab1495ab
commit
539824cfa3
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ for now we just carry the attribute to both the parent element and the select.
|
||||||
|
|
||||||
<div class="usa-combo-box"
|
<div class="usa-combo-box"
|
||||||
{% for name, value in widget.attrs.items %}
|
{% for name, value in widget.attrs.items %}
|
||||||
|
{% if name != 'id' %}
|
||||||
{{ name }}="{{ value }}"
|
{{ name }}="{{ value }}"
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
>
|
>
|
||||||
{% include "django/forms/widgets/select.html" %}
|
{% include "django/forms/widgets/select.html" %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue