diff --git a/mixin.js b/mixin.js index 1afa395..a977dc0 100644 --- a/mixin.js +++ b/mixin.js @@ -40,6 +40,11 @@ var ReactMaskMixin = { this.mask.cursor, this.mask.cursor ) + + if (document.selection) { + var selection = document.selection.createRange() + selection.moveStart('character', this.mask.cursor) + } }, processValue: function(value) { @@ -192,4 +197,4 @@ if (typeof exports !== 'undefined') { root['ReactMaskMixin'] = ReactMaskMixin; } -})(this) \ No newline at end of file +})(this)