Skip to content

Commit 9467826

Browse files
ENGCOM-5126: fixed issue #22736 - Cursor position not in right side of search keyword in mobile #22795
- Merge Pull Request #22795 from sanjaychouhan-webkul/magento2:fixed-22736 - Merged commits: 1. 5621c44 2. 3ca7c02 3. 3c8dcea
2 parents 211dd25 + 3c8dcea commit 9467826

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,16 @@ define([
128128
* @param {Boolean} isActive
129129
*/
130130
setActiveState: function (isActive) {
131+
var searchValue;
132+
131133
this.searchForm.toggleClass('active', isActive);
132134
this.searchLabel.toggleClass('active', isActive);
133135

134136
if (this.isExpandable) {
135137
this.element.attr('aria-expanded', isActive);
138+
searchValue = this.element.val();
139+
this.element.val("");
140+
this.element.val(searchValue);
136141
}
137142
},
138143

0 commit comments

Comments
 (0)