Skip to content

Commit

Permalink
On clear-click first set focus
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelina Konstantinova committed Jul 20, 2018
1 parent c36e729 commit eb80f72
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 eb80f72

Please sign in to comment.