Skip to content

Commit 2879dda

Browse files
committed
MC-41850: Contact form error with non-breaking space at the end of the email address
1 parent 710b9cc commit 2879dda

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Contact/view/frontend/templates

1 file changed

+3
-1
lines changed

app/code/Magento/Contact/view/frontend/templates/form.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ $viewModel = $block->getViewModel();
4444
value="<?= $block->escapeHtmlAttr($viewModel->getUserEmail()) ?>"
4545
class="input-text"
4646
type="email"
47-
data-validate="{required:true, 'validate-email':true}"/>
47+
data-validate="{required:true, 'validate-email':true}"
48+
data-mage-init='{"mage/trim-input":{}}'
49+
/>
4850
</div>
4951
</div>
5052
<div class="field telephone">

0 commit comments

Comments
 (0)