diff --git a/app/code/Magento/Search/view/frontend/web/js/form-mini.js b/app/code/Magento/Search/view/frontend/web/js/form-mini.js index 5331ba3b447ac..0700806a8959d 100644 --- a/app/code/Magento/Search/view/frontend/web/js/form-mini.js +++ b/app/code/Magento/Search/view/frontend/web/js/form-mini.js @@ -128,11 +128,16 @@ define([ * @param {Boolean} isActive */ setActiveState: function (isActive) { + var searchValue; + this.searchForm.toggleClass('active', isActive); this.searchLabel.toggleClass('active', isActive); if (this.isExpandable) { this.element.attr('aria-expanded', isActive); + searchValue = this.element.val(); + this.element.val(''); + this.element.val(searchValue); } },