Add ability to replace/overwrite character in the middle of input instead of inserting
See original GitHub issueExample project - https://stackblitz.com/edit/angular-5lfprb
When I position cursor like that 123-4|56-789
and press any digit, input state becomes 123-40|5-678
- 0 inserted between 4 and 5, 9 is truncated.
It would be good to have the ability to replace characters, so input state would be 123-40|6-789
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How to Type in the Middle of Letters Without the Next Letters ...
Disabling Overtype Mode in Windows. To stop overwriting the next character whenever you type a letter, press the "Insert" key on your keyboard....
Read more >Type over text in Word for Windows - Microsoft Support
Type over text in Word for Windows ... The Insert key on your keyboard allows you to replace text as you type. You...
Read more >Change HTML Textbox: Overwrite Instead of Insert as User ...
I am working on a service which will allow editing of text. To aid the user in the process, I'd like to allow...
Read more >TI 83/84: Delete Mode vs. Insert Mode
press 2ND DEL. The cursor will change style; now it's in “insert mode” (INS). Type the missing “1”, and the other characters will...
Read more >How to change alignment in Excel, justify, distribute and fill cells
Horizontal alignment · Align Left Align Left - aligns the contents along the left edge of the cell. · Center Center - puts...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, got a similar issue with my telephone mask. In Brazil we can have (11) 1 1111-1111 and (22) 2222-2222 for telephone numbers. If a have a mask like (00) 9 0000-0000, when applying the mask, I’ll get (22) 22222-222 instead of (22) 2222-2222.
Hi, try this version (with: this.control.control.setValue(this.currentValue)😉: