Skip to content

Commit

Permalink
Add missing spellcheck param to character count
Browse files Browse the repository at this point in the history
We added a new spellcheck param to the textarea component in #1859

However, we forgot to add the param to the character count component, which meant it couldn't be passed through to the textarea. This adds the missing param.
  • Loading branch information
Vanita Barrett committed Jul 17, 2020
1 parent ce8e223 commit bcb7b23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/govuk/components/character-count/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
name: params.name,
describedBy: params.id + '-info',
rows: params.rows,
spellcheck: params.spellcheck,
value: params.value,
formGroup: params.formGroup,
classes: 'govuk-js-character-count' + (' govuk-textarea--error' if params.errorMessage) + (' ' + params.classes if params.classes),
Expand Down

0 comments on commit bcb7b23

Please sign in to comment.