Skip to content

Commit

Permalink
Fix load card input value attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Aug 1, 2023
1 parent 73ef7d4 commit 81585df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example-templates/dist/shop/cart/load.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Outputs form for collecting a cart number to be loaded.
{{- 'Cart Number'|t -}}
</label>
<div>
{{ input('text', 'number', 'border border-gray-300 hover:border-gray-500 px-4 py-2 leading-tight rounded', {
{{ input('text', 'number', {
id: 'number',
class: ['w-full', ''],
class: ['w-full', 'border border-gray-300 hover:border-gray-500 px-4 py-2 leading-tight rounded'],
placeholder: '7e89fh0ew8034…'
}) }}
</div>
Expand Down
4 changes: 2 additions & 2 deletions example-templates/src/shop/cart/load.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Outputs form for collecting a cart number to be loaded.
{{- 'Cart Number'|t -}}
</label>
<div>
{{ input('text', 'number', '[[classes.input]]', {
{{ input('text', 'number', null, {
id: 'number',
class: ['w-full', ''],
class: ['w-full', '[[classes.input]]'],
placeholder: '7e89fh0ew8034…'
}) }}
</div>
Expand Down

0 comments on commit 81585df

Please sign in to comment.