Skip to content

Commit 1c305cf

Browse files
committed
[input] lowercase params.spellcheck
This ensures the behave is the same as the nunjucks templates when a boolean value is passed.
1 parent af1869f commit 1c305cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nhsuk_frontend_jinja/nhsuk/components/input/template.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<input class="nhsuk-input
5151
{%- if params.classes %} {{ params.classes }}{% endif %}
5252
{%- if params.errorMessage %} nhsuk-input--error{% endif %}" id="{{ id }}" name="{{ params.name }}" type="{{ params.type | default('text') }}"
53-
{%- if params.spellcheck not in [none, undefined] %} spellcheck="{{ params.spellcheck }}"{% endif %}
53+
{%- if params.spellcheck not in [none, undefined] %} spellcheck="{{ params.spellcheck | lower }}"{% endif %}
5454
{%- if params.value %} value="{{ params.value }}"{% endif %}
5555
{%- if describedBy %} aria-describedby="{{ describedBy }}"{% endif %}
5656
{%- if params.autocomplete %} autocomplete="{{ params.autocomplete }}"{% endif %}

0 commit comments

Comments
 (0)