Skip to content

Commit

Permalink
Fix name attribute on UAC input (#472)
Browse files Browse the repository at this point in the history
* Fix name attribute on UAC input

* Added name attribute to macro options file
  • Loading branch information
bameyrick authored Jun 27, 2019
1 parent 136eb11 commit 09dfb62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/uac/_macro-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
| classes | string | false | Classes to apply to the field wrapping the input |
| label | `Label` [_(ref)_](/components/label) | true | Config for the input label |
| type | string | false | Whether the input should be of type "number". Defaults to text |
| name | string | false | Name attribute for the input |
| maxlength | number | false | Maximum length for the UAC code not including spaces. Defaults to 16 |
| groupSize | number | false | Number of characters before a space is automatically added. Defaults to 4 |
| securityMessage | string | false | The security message to place below the input. If not specified the message and lock will not render |
1 change: 1 addition & 0 deletions src/components/uac/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{{ onsInput({
"id": params.id,
"type": params.type,
"name": params.name,
"fieldClasses": "uac__field" + (" " + params.classes if params.classes else ""),
"classes": "uac__input js-uac",
"label": params.label,
Expand Down

0 comments on commit 09dfb62

Please sign in to comment.