Skip to content

Commit

Permalink
Added a caret to mask factory to fix issues with the cursor positioni…
Browse files Browse the repository at this point in the history
…ng in android with chrome. Fix assisrafael#305
  • Loading branch information
Buzunda committed Feb 14, 2018
1 parent 50ac3d5 commit 94fd51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/mask-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function maskFactory(maskDefinition) {
if (element[0].setSelectionRange) {
element[0].focus();
window.setTimeout(function() {
if(currentPos!=element[0].selectionStart){
if(currentPos!==element[0].selectionStart){
currentPos=element[0].selectionStart;
}
pos=currentPos+pos;
Expand Down

0 comments on commit 94fd51c

Please sign in to comment.