We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 211dd25 + 3c8dcea commit 9467826Copy full SHA for 9467826
app/code/Magento/Search/view/frontend/web/js/form-mini.js
@@ -128,11 +128,16 @@ define([
128
* @param {Boolean} isActive
129
*/
130
setActiveState: function (isActive) {
131
+ var searchValue;
132
+
133
this.searchForm.toggleClass('active', isActive);
134
this.searchLabel.toggleClass('active', isActive);
135
136
if (this.isExpandable) {
137
this.element.attr('aria-expanded', isActive);
138
+ searchValue = this.element.val();
139
+ this.element.val("");
140
+ this.element.val(searchValue);
141
}
142
},
143
0 commit comments