Skip to content

Commit

Permalink
Merge pull request #2097 from bem/input-clear-focus-v5
Browse files Browse the repository at this point in the history
On clear-click first set focus
  • Loading branch information
Gela authored Jul 20, 2018
2 parents c36e729 + eb80f72 commit ef407fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common.blocks/input/_has-clear/input_has-clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ provide(Input.declMod({ modName : 'has-clear', modVal : true }, /** @lends input

_onClearClick : function() {
this
.setVal('', { source : 'clear' })
.setMod('focused');
.setMod('focused')
.setVal('', { source : 'clear' });
},

_updateClear : function() {
Expand Down

0 comments on commit ef407fb

Please sign in to comment.