Skip to content

Commit 6fd1eda

Browse files
dankhrapiyushgelanivishal
authored andcommitted
Trim email address in newsletter subscribe form
1 parent 0c2fa6f commit 6fd1eda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Newsletter/view/frontend/templates/subscribe.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<div class="control">
2424
<input name="email" type="email" id="newsletter"
2525
placeholder="<?= $block->escapeHtmlAttr(__('Enter your email address')) ?>"
26+
data-mage-init='{"mage/trim-input":{}}'
2627
data-validate="{required:true, 'validate-email':true}"/>
2728
</div>
2829
</div>

0 commit comments

Comments
 (0)