Skip to content

Commit d3aa1e0

Browse files
ENGCOM-2509: [Backport] Act better on existing input focus instead of removing it #17086
- Merge Pull Request #17086 from mageprince/magento2:2.1-develop-PR-port-13989 - Merged commits: 1. 90f884f
2 parents b42f13b + 90f884f commit d3aa1e0

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)