Deleting extra "0" symbols when pressing Backspace
See original GitHub issueDescription
When cursor is placed after zero and another symbol, pressing backspace erases both symbols. In text f(0)
, cursor is in the end, pressing Backspace will erase )
and 0
in front of it.
Recording
On this recording I press 0
, 0
, )
, Backspace
.
Sandbox
It can be reproduced at the demo website: https://www.slatejs.org/examples/richtext.
Steps
To reproduce the behavior:
- Place cursor after symbol which follows 0.
- Press Backspace.
Expectation
One symbol is deleted, instead of two.
Environment
- Slate Version: 0.70.0
- Operating System: Mac OS
- Browser: Chrome 96.0.4664.55 (Official Build) (arm64) as well as in Safari.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
HTML notebook: Backspace sometimes deletes multiple ...
If I put the cursor immediately ater the 4 and press backspace/delete, not only the 4 but also the preceding ".0," are deleted....
Read more >backspace key types strange characters in outlook - TechNet
Under the Option to "Replace Text as you type" in the "With" option is the symbol 릀. After deleting this symbol the backspace...
Read more >When I press the space bar it deletes the letters after it
Simply press the Insert key and it will deactivate the replace mode. Pressing it the second time reactivates it. Share.
Read more >MS Access: Need to hit backspace twice to delete one ...
When I copy text from Excel to MS Access text box, the characters copy over, but when I hit backspace it deletes half...
Read more >HOW TO delete a blank or extra page in Word document (5 ...
1. Go to the Home tab. 2. Select the Show/Hide character button. If you can see a whole heap of little symbols that...
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 FreeTop 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
Top GitHub Comments
It does look related, I’m gonna try these fixes locally.
Works like a charm! Thanks @unageek