Skip to content

Commit a394b33

Browse files
author
Stanislav Idolov
authored
ENGCOM-2079: Submitting search form (mini) with enter key fires event handlers bound by jquery twice #16281
2 parents f664fd2 + 42389e0 commit a394b33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Search/view/frontend/web/form-mini.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ define([
207207
break;
208208
case $.ui.keyCode.ENTER:
209209
this.searchForm.trigger('submit');
210+
e.preventDefault();
210211
break;
211212
case $.ui.keyCode.DOWN:
212213
if (this.responseList.indexList) {

0 commit comments

Comments
 (0)