facebook / facebook/lexical

Bug: Spellcheck clears all misspelled words

Open
#4,792 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

When i use the browser spellcheck to correct a misspelled word it clears the other misspelled words in the same paragraph until i continue typing. This makes correcting multiple misspelled words in the same paragraph tricky as i keep having to refocus the editor and then type to show the other misspelled words.

Lexical version: current

## Steps To Reproduce

1. Go to https://playground.lexical.dev/
2. Type a paragraph with multiple misspelled words.
3. Right click and choose browser suggested fix.
4. Observe that all misspelled words are now not indicated as being incorrect

Link to code example:

https://playground.lexical.dev/

Video example:
[lexical-spellcheck-error.webm](https://github.com/facebook/lexical/assets/9676762/048a0afa-3a90-4dbc-b6cf-2f1276ec18b2)

## The current behavior
All spelling mistake indicators in same paragraph cleared after one is resolved

## The expected behavior
Remaining spelling mistakes are still indicated

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.