Skip to content

Single line TextInput onSubmitEditing doesn't work #451

@byw

Description

@byw

Environment

  1. react-native -v: 0.62.13
  2. npm ls react-native-macos: 0.61.0-0
  3. node -v: 12.18.0
  4. npm -v: 6.14.4
  5. yarn --version: 1.22.4
  6. xcodebuild -version: 11E608c

Issue

TextInput in single-line mode doesn't trigger onSubmitEditing event when I press enter.

Steps to Reproduce

  1. Hookup onSubmitEnter to a callback.
  2. console.log a debug line in callback.
  3. Type something, press enter

Expected Behavior

The callback should be called, producing console output.

Actual Behavior

The callback is not called - no message printed to console.
It does work, however, in multiline when I hit Cmd-Enter.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions