Skip to content

Caret rendered below text baseline after Tab (cosmetic only) #3507

@nathan-ahs

Description

@nathan-ahs

What happened?

When typing text in the editor and pressing Tab to insert indentation, the caret is rendered slightly below the current line rather than aligned with the text baseline.

Visually, the cursor appears dropped down below the line it should be on. Typing any character realigns the caret back to the current line, so the actual insertion position is correct — only the caret's rendered position between the Tab and the next keystroke is wrong.

The bug is purely visual:

  • The caret looks dropped below the line after pressing Tab.
  • If you type a character, it is inserted on the correct line, and the caret then snaps back to its expected vertical position.

Expected: the caret should render aligned with the current line's text baseline immediately after the Tab.

Actual: the caret renders slightly below the current line until the next keystroke.

Steps to reproduce

  1. Open SuperDoc (reproduced on the public demo and in a local integration on v1.35.0).
  2. Click into a paragraph and type any text, e.g. hello.
  3. Press Tab to insert indentation.
  4. Observe the caret — it is rendered slightly below the current line.
  5. Type any character — it is inserted on the correct line and the caret snaps back to its expected position.

SuperDoc version

1.35.0 (also reproduced on the live demo)

Browser

Firefox

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions