Skip to content

Commit

Permalink
ENGCOM-5336: [Backport] fixed issue #22736 - Cursor position not in r…
Browse files Browse the repository at this point in the history
…ight side of search keyword in mobile #23352

 - Merge Pull Request #23352 from krishprakash/magento2:2.2-develop-PR-port-22795
 - Merged commits:
   1. c068886
   2. 525396a
   3. e7c33f3
   4. 2464b31
  • Loading branch information
magento-engcom-team committed Jun 21, 2019
2 parents 8c02c91 + 2464b31 commit 795162a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/code/Magento/Search/view/frontend/web/js/form-mini.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,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);
}
},

Expand Down

0 comments on commit 795162a

Please sign in to comment.