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.

Duplicate characters when typing at the end of a link decorator

See original GitHub issue

Description If you insert anchor tags via decorators, and then type at the end of the anchor/decorator, duplicate characters get inserted.

Recording links-demo

Sandbox Code sandbox

Steps To reproduce the behavior:

  1. Go to code sandbox
  2. Click on example.com
  3. Type at the end of example.com
  4. See error

Expectation It should insert characters as normal

Environment

  • Slate Version: 0.66.5
  • Operating System: Linux
  • Browser: Chrome

Context


Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SirensOfTitancommented, Apr 1, 2022

@kellyjosephprice: So the behavior here seems to differs by browser:

  • Chromium seems to insert double characters with no errors.
  • Safari and Firefox both throw an error: Cannot resolve a Slate point from DOM point: [object Text],19
1reaction
dylanscommented, Oct 27, 2021

This should be fixed with the latest releases. Please reopen if it is not. (latest slate-react is 0.69.0).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate characters when typing in VS 2022 .cs page
I am typing only once a character but it automatic creates its duplicate. In .cs or .vb code area whenever i type something...
Read more >
Remove duplicates from a given string - GeeksforGeeks
1) Sort the elements. 2) Now in a loop, remove duplicates by comparing the current character with previous character. 3) Remove extra characters...
Read more >
Mac Randomly Double Typing Keys or Double-Spacing ...
How to Fix Double Typing Key Problems on MacBook Pro & MacBook Air. If you're able to successfully type sentences, phrases, spaces, keys,...
Read more >
Typewriter Effect | CSS-Tricks
Adding more steps to the typing animation will increase the smoothness of the typing; Adjust the letter-spacing based on the font-family and ...
Read more >
How to work with special characters in Illustrator
Double -click a glyph in the Glyphs panel, if one is available. Note: Additional replacement options are available for Asian glyphs.
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