Open bekerov opened 7 years ago
I don't understand your problem from your Gif. What are you trying to do? How does if fails?
If the pointer is on first position, the correct action is replace character, not add on beginning and remove the last.
Well, that's not how typing in browsers work... It is still a regular input field. To replace a character, either you delete then insert the new one, or you select the char to replace and type the new one.
Problem with ngMask: if you select 2 chars or more, after typing the first replacement char, it will jump to the end of the field, so you can't type the second replacement char right away.
Having the same type of issues. Editing anything in the field will move your input cursor to the very end, regardless of the action. So erasing even one character/number from the middle will move your input cursor. Is there anything in the works to fix this?
A similar problem
Trying replace number from start. Cant do it