Skip to content

Commit

Permalink
changed according to guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay committed May 18, 2019
1 parent 5621c44 commit 3ca7c02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/Magento/Search/view/frontend/web/js/form-mini.js
Expand Up @@ -128,12 +128,13 @@ 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);
let searchValue = this.element.val();
searchValue = this.element.val();
this.element.val("");
this.element.val(searchValue);
}
Expand Down

0 comments on commit 3ca7c02

Please sign in to comment.