Skip to content

Bug: Cursor disappears when dragging or interacting with the left-side section (hand icon gesture) #8064

@aldoprogrammer

Description

@aldoprogrammer

Description

When interacting with the section on the left side (shows hand icon gesture), the text cursor becomes invisible. Typing still works, but the cursor is not visible until after some time. Clicking in the editor does not make it visible immediately.

Steps to Reproduce

  1. Open a Lexical editor instance.
  2. Grab or drag the left-side section (hand gesture icon area).
  3. Observe that the text cursor disappears.
  4. Try typing: text appears but cursor remains invisible.
  5. Wait for some time: cursor reappears.

Expected Behavior

The cursor should remain visible and follow the typing location regardless of dragging or interacting with the left section.

Actual Behavior

Cursor disappears temporarily after interacting with the left section, even though typing still works. This happened on Firefox only, Chrome and Edge Works Fine

Demo

Watch Here

Environment

  • Lexical version: 0.39.0
  • Browser: Firefox 146.0.1.
  • OS: Windows
  • Node version: 20.19.5

Additional Context

  • This behavior may be related to cursor state or selection handling when the left-hand section is manipulated.

Impact of fix

This bug causes confusion for users because the text cursor is invisible after interacting with the left-hand section. Users can still type, but they cannot see where their input will appear, leading to potential mistakes. Fixing this will improve the editing experience and reduce user frustration, especially for Firefox users. All users editing in this scenario will benefit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions