Skip to content

Commit

Permalink
Trim email address in email to a friend form
Browse files Browse the repository at this point in the history
  • Loading branch information
dankhrapiyush committed Jul 5, 2018
1 parent d495275 commit b827bd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<div class="control">
<input name="recipients[email][<%- data._index_ %>]" title="<?= $block->escapeHtmlAttr(__('Email')) ?>"
id="recipients-email<%- data._index_ %>" type="email" class="input-text"
data-mage-init='{"mage/trim-input":{}}'
data-validate="{required:true, 'validate-email':true}"/>
</div>
</div>
Expand Down Expand Up @@ -72,7 +73,8 @@
<label for="sender-email" class="label"><span><?= $block->escapeHtml(__('Email')) ?></span></label>
<div class="control">
<input name="sender[email]" value="<?= $block->escapeHtmlAttr($block->getEmail()) ?>"
title="<?= $block->escapeHtmlAttr(__('Email')) ?>" id="sender-email" type="text" class="input-text"
title="<?= $block->escapeHtmlAttr(__('Email')) ?>" id="sender-email" type="email" class="input-text"
data-mage-init='{"mage/trim-input":{}}'
data-validate="{required:true, 'validate-email':true}"/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Theme/view/frontend/web/js/row-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ define([

$(tmpl).appendTo(row);

$(this.options.rowContainer).append(row);
$(this.options.rowContainer).append(row).trigger('contentUpdated');

row.addClass(this.options.additionalRowClass);

Expand Down

0 comments on commit b827bd1

Please sign in to comment.