8000 [Form] Use for=ID on radio/checkbox label. by Nyholm · Pull Request #24434 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,14 @@
{% endblock %}

{% block checkbox_label -%}
{%- set label_attr = label_attr|merge({'for': id}) -%}

{{- block('checkbox_radio_label') -}}
{%- endblock checkbox_label %}

{% block radio_label -%}
{%- set label_attr = label_attr|merge({'for': id}) -%}

{{- block('checkbox_radio_label') -}}
{%- endblock radio_label %}

Expand Down
0