misc: add correct value to form element role attributes (#78151) #360

Merged
fpeters merged 1 commits from wip/78151-widget-empty-role-attribute into main 2023-06-12 09:37:42 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 018676bd85 - Show all commits

View File

@ -13,7 +13,7 @@
data-widget-name="{{ widget.name }}"
data-widget-name-for-id="{{ widget.get_name_for_id }}"
{% if widget.div_id %}id="{{widget.div_id}}" data-valuecontainerid="form_{{widget.name}}"{% endif %}
{% if widget.a11y_role %}role="{{ a11y_role }}"{% endif %}
{% if widget.a11y_role %}role="{{ widget.a11y_role }}"{% endif %}
{% if widget.a11y_labelledby %}aria-labelledby="form_label_{{widget.name}}"{% endif %}
{% for attr in widget.prefill_attributes %}
data-{{attr}}="{{widget.prefill_attributes|get:attr}}"