Skip to content

Bug: typing a #hashtag at the end of a line in a new style inserts keystrokes in wrong order #3965

Closed

Description

@isaacw-science

Lexical version: live, at https://playground.lexical.dev/

Steps To Reproduce

  1. Open https://playground.lexical.dev/
  2. Place cursor at end of a non-heading text line, e.g. Try typing in some text with different formats.<cursor>
  3. Select a style, such as Bold, or change the font
  4. Type the key sequence #hashtag

The current behavior

Result: #hshtaga
The editor goes #<cursor>, #h<cursor>, #h<cursor>a, #h<cursor>sa, ... #hshtag<cursor>a
Screenshot 2023-02-23 at 10 17 30 AM

The expected behavior

Expected result is #hashtag

Activity

  1. acywatson commented on Feb 23, 2023

    @acywatson
    Contributor

    Good one - thanks for reporting. Possibly something in the TextEntities code?

  2. useCallback commented on Feb 27, 2023

    @useCallback

    @acywatson @fantactuka Please check PR : #3986

  3. added
    core
    on Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    all-platforms-bugcore

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions