Skip to content

Commit

Permalink
Pass attributes option to items in autocomplete component
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Sep 18, 2024
1 parent bda2bb7 commit a7981b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-govuk/components/autocomplete/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{% for item in params.items %}
{% set addItem = items.push({
text: item.text,
value: item.value or item.text
value: item.value or item.text,
attributes: item.attributes
}) %}
{% endfor %}

Expand Down

0 comments on commit a7981b2

Please sign in to comment.