Skip to content

Bug: Can't escape inline code #7025

Open
@olafsulich

Description

Lexical version:

v0.23.0

Steps To Reproduce

  1. Open the lexical playground
  2. Type one backtick, add some text, type the second backtick - the inline code node should be created
  3. Without leaving the inline code, move to the center of it, add space with some more text
  4. You can't escape the inline code, either with the space (the default behavior) or the right arrow
Screen.Recording.2025-01-08.at.11.31.24.mov

The issue exists only when you've not escaped the code before. An example of it working fine (I was able to escape with the right arrow):

Screen.Recording.2025-01-08.at.11.36.39.mov

The current behavior

Can't escape the inline code

The expected behavior

Can escape the inline code

Impact of fix

It's an edge case, sure, but it could be quite frustrating because you have to delete the whole code node to eliminate it.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions