Skip to content

Bug: Backspace accepts macOS text replacement #8416

@nmggithub

Description

@nmggithub

Lexical version: commit 67cfec5a27108bb865a309db3d0ba5d660ed885c

Steps To Reproduce

  1. Type a macOS text replacement and press backspace.

Link to code example:

Screen.Recording.2026-04-28.at.16.02.05.mov

The current behavior

Backspace accepts the text replacement, and the caret sometimes ends up somewhere in the middle of the inserted text.

The expected behavior

Backspace deletes a character.

Impact of fix

This happens for every macOS text replacement. This only happens on Chrome.

Related: electron/electron#50432

Metadata

Metadata

Assignees

No one assigned

    Labels

    compositionRelating to IME inputs

    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