FormidableLabs / FormidableLabs/use-editable
First selection + delete/backspace press does not work
Open
- Dominant language
- TypeScript
- Stars
- 619
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
This can be reproduced in [codepen example](https://codesandbox.io/s/use-editable-0l9kc):
- Click anywhere on the text
- Press and hold [delete] or [backspace] keys
*Desired behavior:* text deletion should continue until user stop pressing the key
*Current behavior:* selection is lost after one or two characters are deleted
Ctrl + Z also works erratically.
Note: this happens only on _first_ time selecting it.
I managed to get it working OK by re-rendering the component (not an ideal solution).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.