input: fix cursor's jump to end of input when user edit text at the middle of input
Merge pull request #393 from bem/issues/388@v2

input: fix cursor's jump to end of input when user edit text at the middle of input