Skip to content

Bug: iOS autocomplete and autocorrect do not refresh on backspace #7994

@gregzo

Description

@gregzo

On iOS, the system keyboard’s autocomplete suggestions (the suggestion bar above the keyboard) and autocorrect candidates do not update after pressing Backspace inside a Lexical editor. They remain stuck on the suggestion that was shown before deleting the character(s).

This only happens in Lexical. In standard and <textarea> elements, suggestions update immediately after backspacing.

Lexical version: 0.38.2

Steps To Reproduce

  1. On an iOS device, open the lexical playground
  2. Type and notice suggestions updating in the native keyboard toolbar
  3. Hit backspace once or more, suggestions do not update
  4. Hold spacebar to move the selection, release -> selection update, even if neutral, triggers a refresh of the native toolbar's suggestions

Expected behavior

When the user presses Backspace, the iOS keyboard should recompute and update its suggestions and autocorrect candidates based on the new text content.

Actual behavior

Suggestions remain frozen on backspace input, until the next selection change (even if neutral).

Impact of fix

This results in incorrect or stale autocomplete behavior, confusing users and making basic text entry feel a bit broken on iOS.

Developers and users of iOS web apps are also impacted. In our case, the issue has been reported by several users already.

Metadata

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