borbit / react-mask-mixin

Input mask for text input http://borbit.github.io/react-mask-mixin/
36 stars 11 forks source link

_onBlur, caret position and element value #3

Open talvi opened 9 years ago

talvi commented 9 years ago

Element value cut by cursor position even if value is properly filled. Check _onBlur function. Fast fix: this.mask.props.value = value.substr(0, cursor) -> this.mask.props.value = value.substr(0, value.length)