Skip to content

Commit ddcf068

Browse files
committed
Validated input text fields to enter only blank spaces
1 parent 19fab05 commit ddcf068

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/CatalogSearch/view/frontend/templates/advanced

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogSearch/view/frontend/templates/advanced/form.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@
126126
value="<?= $block->escapeHtml($block->getAttributeValue($_attribute)) ?>"
127127
title="<?= $block->escapeHtml($block->getAttributeLabel($_attribute)) ?>"
128128
class="input-text <?= $block->escapeHtmlAttr($block->getAttributeValidationClass($_attribute)) ?>"
129-
maxlength="<?= $block->escapeHtmlAttr($maxQueryLength) ?>" />
129+
maxlength="<?= $block->escapeHtmlAttr($maxQueryLength) ?>"
130+
data-validate="{'validate-alphanum':true}"/>
130131
<?php endswitch; ?>
131132
</div>
132133
</div>

0 commit comments

Comments
 (0)