facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
17.93k stars 1.5k forks source link

Bug: Cursor bigger than the text in Safari #6108

Open MaxPlav opened 4 weeks ago

MaxPlav commented 4 weeks ago

Currently, a cursor can be much bigger than the text where it's placed. The bug is reproducible in the latest Safari. I've checked the same in the latest Chrome and Firefox - no issues.

Lexical version: 0.15.0 Safari: 17.4.1

Steps To Reproduce

  1. Open https://playground.lexical.dev in Safari
  2. Insert an image
  3. Add text after the image.
  4. See the cursor size.

The current behavior:

https://github.com/facebook/lexical/assets/5062807/0b7266d2-d038-4af5-a811-7d2baa6cacda

The expected behavior

The cursor size is similar to the text font size.

StyleT commented 3 weeks ago

HI!

Just wanted to double-check here... Are you sure this is a bug? Since cursor height here is of a size of the line-height that is determined by the image... So maybe it's actually by design.

But I may be totally off here in my logic.