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 baa23de + 6f02d69 commit 094fb10Copy full SHA for 094fb10
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