facebook / facebook/lexical

Bug: Font size highlight removed on input

Open
#5,690 3 comments 3 reactions 0 assignees View on GitHub
playground
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
57

Description

Lexical version: v0.13.1

## Steps To Reproduce

1. Highlight a any text you want to resize
2. Click the font size input (see that the current highlight gets removed)
3. Change the input, e.g 50
4. Press enter, the text still resizes even though the highlight is removed

https://github.com/facebook/lexical/assets/52998821/917fdfbd-4e9f-4acf-8e0e-6380f26d3df5

## The current behavior

When trying to resize using the font size input, the highlight gets removed and still does the resizing on enter

## The expected behavior

Maybe this is hard but can we keep the current highlight of the text if we have control of it when we change the font size via the input? It's the same behavior when we change the sizes via the `+/-` buttons

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.