Skip to content

Commit c3c8ab8

Browse files
author
Stanislav Idolov
authored
ENGCOM-2509: [Backport] Act better on existing input focus instead of removing it #17086
2 parents 8aca25c + d3aa1e0 commit c3c8ab8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ define([
8989
}, this), 250);
9090
}, this));
9191

92-
this.element.trigger('blur');
92+
if (this.element.get(0) === document.activeElement) {
93+
this.setActiveState(true);
94+
}
9395

9496
this.element.on('focus', this.setActiveState.bind(this, true));
9597
this.element.on('keydown', this._onKeyDown);

0 commit comments

Comments
 (0)