Skip to content

[0.88.0-rc.4][Android] TextInput onSubmitEditing fires twice on Android with hardware keyboard #58990

Open

Description

@mhoran

Description

When hitting enter on a hardware keyboard in a multiline TextInput with submitBehavior={"submit"} on Android, onSubmitEditing fires twice.

Steps to reproduce

  1. Run https://snack.expo.dev/@mhoran/funny-red-yogurt using Expo v58
  2. Type text in the TextInput
  3. Hit hardware enter key
  4. Notice onSubmitEditing printed twice
  5. Use IME to submit
  6. Notice onSubmitEditing printed once

React Native Version

0.88.0-rc.4

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info

System:
  OS: Linux 7.2 Debian GNU/Linux 13 (trixie) 13 (trixie)
  CPU: (16) x64 AMD Ryzen AI 7 350 w/ Radeon 860M
  Memory: 4.55 GB / 30.64 GB
  Shell:
    version: "5.9"
    path: /usr/bin/zsh
Binaries:
  Node:
    version: 22.23.3
    path: /usr/bin/node
  Yarn:
    version: 1.22.22
    path: /home/mhoran/.npm-global/bin/yarn
  npm:
    version: 10.9.9
    path: /usr/bin/npm
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
IDEs:
  Android Studio: AI-262.9437.185.2621.16467767
Languages:
  Java:
    version: 21.0.12.1
    path: /usr/bin/javac
  Ruby:
    version: 3.0.2
    path: /home/mhoran/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 19.3.0
    wanted: 19.3.0
  react-native:
    installed: 0.88.0-rc.4
    wanted: 0.88.0-rc.4
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

onSubmitEditing printed twice in console

MANDATORY Reproducer

https://snack.expo.dev/@mhoran/funny-red-yogurt

Screenshots and Videos

No response

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions