Skip to content

[Android] Soft keyboard dismisses and cursor jumps when typing after toggling a mark on a collapsed selection #6022

Description

@virgil1996

Description
When using Slate on Android. If toggles a mark (e.g., Bold) while the selection is collapsed and then attempts to type, the cursor position breaks and the Android soft keyboard is immediately dismissed. However, if the user highlights an existing piece of text, applies the mark, and then continues typing, the issue does not occur.

I have attached a screen recording demonstrating the exact behavior.

Recording:

20260320-175857.mp4

Steps to reproduce

  • Open a Slate editor on an Android
  • Focus the editor (Selection must be collapsed).
  • Toggle a mark (e.g., Bold).
  • Type any character.

Expected behavior:
The soft keyboard should remain open.

Actual behavior:
The soft keyboard is instantly dismissed.

Environment:
OS: Android 16 (Pixel 9a Emulator)

Slate Version: latest?I used the official sample page for testing. https://www.slatejs.org/examples

Keyboard: Default Android Keyboard

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions