Skip to content

Commit

Permalink
fixed Submitting search form (mini) with enter key fires event handle…
Browse files Browse the repository at this point in the history
…rs bound by jquery twice
  • Loading branch information
amjad-codilar committed May 19, 2018
1 parent 3d628f8 commit 153faa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Search/view/frontend/web/form-mini.js
Expand Up @@ -220,6 +220,7 @@ define([

case $.ui.keyCode.ENTER:
this.searchForm.trigger('submit');
e.preventDefault();
break;

case $.ui.keyCode.DOWN:
Expand Down

0 comments on commit 153faa6

Please sign in to comment.