-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Description
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
- Inside ScrollView component put several TextInput components
- Tap on one TextInput, keyboard will appear, tap on blank space, keyboard will disappear.
- 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.
Reproducible Demo
Newly generated react-native app with ScrollView and several TextInput components
https://github.com/magneticz/AwesomeBug