Skip to content

Keyboard cannot be dismissed, if user taps on second TextInput component #17252

@absemeta

Description

@absemeta

Is this a bug report?

Yes.

Have you read the Contributing Guidelines?

Yes.

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 8.7.0
Yarn: 1.2.1
npm: 5.4.2
Watchman: 4.9.0
Xcode: Xcode 9.0 Build version 9A235
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: 0.51.0 => 0.51.0

Steps to Reproduce

  1. Inside ScrollView component put several TextInput components
  2. Tap on one TextInput, keyboard will appear, tap on blank space, keyboard will disappear.
  3. Tap on one TextInput, then tap on second TextInput, and then tap on blank space.

Expected Behavior

Keyboard should be dismissed when pressed on blank space

Actual Behavior

Keyboard persists if user has several TextInput components inside ScrollView and he taps on first and then second TextInput component. Keyboard persists, and it is correct behavior.

However, now, when user presses on blank space, keyboard is not dismissed. It stays there until user presses any other TextInput, and then presses blank space.
bug

Reproducible Demo

Newly generated react-native app with ScrollView and several TextInput components
https://github.com/magneticz/AwesomeBug

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions