Bug: The first letter took different format when typing after selecting 2 different style text
Open
Nobody has claimed this yet.
core
- Dominant language
- TypeScript
- Stars
- 23.9k
- Forks
- 2.2k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 61
Description
Lexical version:
v0.12.0
Steps To Reproduce
- Active bold button and type some bold text
- Inactive bold button and type some normal text
- Select all bold and normal text
- type new text
Link to code example:
https://playground.lexical.dev/
The current behavior
Only the first letter of new text get bold
The expected behavior
The first letter of the new text should have the same format as the other
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the linked Lexical playground and reproduce the issue by entering bold and normal text, selecting both styles, and typing replacement text. Compare the formatting of the first character with the remaining characters; done means all newly typed text has consistent formatting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100