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 authored and gelanivishal committed Jun 3, 2018
1 parent 943e2cd commit 04583ac
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
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ define([

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

case $.ui.keyCode.DOWN:
Expand Down

0 comments on commit 04583ac

Please sign in to comment.