Skip to content

When the content is empty, the first voice input on Android repeats #5983

@mayingjie123

Description

@mayingjie123

Description
On Android devices, when using Baidu Input Method or Sogou Input Method for voice input, if there is no content in the slate input box, the first voice input will be repeated. It's normal if there is content in the input box (even if it's just one space)

Every time the voice input is "hello", but when the input box is empty, "hello hello" appears. It works normally when there is content in the input box (even if there is only one space)

Recording

slate.bug.mp4

Sandbox
Reproducible on the official Rich Text example: https://www.slatejs.org/examples/richtext

Steps

  1. On an Android device, open Chrome.
  2. Go to the Slate Rich Text example link above.
  3. Press and hold the space bar on the keyboard for voice input (e.g., Sogou).
  4. It's normal to say "hello" when there is content in the input box
  5. When there is no content in the input box and you say "hello", a bug occurs: "hello" is repeated

Expectation
The content input by long-pressing the voice button in the Android input method cannot be repeated

Environment

  • Slate Version: 0.120.0
  • OS: android 13
  • Browser: Chrome
  • Input Method: Sogou Input Method、Baidu Input Method

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions