Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set textarea value only when set.
Browse files Browse the repository at this point in the history
MattHolmes123 committed Dec 2, 2024
1 parent 7036d42 commit cbcf57e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@
{%- if params.disabled %} disabled{% endif %}
{%- if describedBy %} aria-describedby="{{ describedBy }}"{% endif %}
{%- if params.autocomplete %} autocomplete="{{ params.autocomplete }}"{% endif %}
{{- govukAttributes(params.attributes) }}>{{ params.value }}</textarea>
{{- govukAttributes(params.attributes) }}>{%- if params.value %}{{ params.value }}{% endif %}</textarea>
{% if params.formGroup and params.formGroup.afterInput %}
{{ params.formGroup.afterInput.html | safe | trim | indent(2) if params.formGroup and params.formGroup.afterInput.html else params.formGroup.afterInput.text }}
{% endif %}

0 comments on commit cbcf57e

Please sign in to comment.