question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deleting extra "0" symbols when pressing Backspace

See original GitHub issue

Description

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

slate-bug_SparkVideo (1)

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:

  1. Place cursor after symbol which follows 0.
  2. 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:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
skolodyazhnyycommented, Nov 22, 2021

It does look related, I’m gonna try these fixes locally.

0reactions
skolodyazhnyycommented, Nov 24, 2021

Works like a charm! Thanks @unageek

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found