Touchable/Button in Modal dismisses keyboard on Touch if Modal's parent is a ScrollView without keyboardShouldPersistTaps #28871
Labels
API: Keyboard
Component: Button
Component: Modal
Component: ScrollView
Needs: Triage 🔍
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
If you have a TextInput and a Touchable (or Button) inside a Modal, inside a ScrollView that doesn't have keyboardShouldPersistTaps on always or handled, touching the Touchable will dismiss the keyboard.
React Native version:
System:
OS: Windows 10 10.0.18362
CPU: (4) x64 Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz
Memory: 3.15 GB / 15.96 GB
Binaries:
Node: 10.15.3 - E:\nodejs\node.EXE
Yarn: 1.22.0 - E:\Yarn\bin\yarn.CMD
npm: 6.14.5 - E:\nodejs\npm.CMD
SDKs:
Android SDK:
API Levels: 29
Build Tools: 29.0.0, 29.0.3
System Images: android-29 | Google APIs Intel x86 Atom
npmPackages:
react: 16.9.0 => 16.9.0
react-native: https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz => 0.61.4
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
Steps To Reproduce
Expected Results
Tapping the touchable should not dismiss the Keyboard. The ancestor ScrollView should not cause the Keyboard to get dismissed, as the Modal itself doesn't have a scrollView.
Snack, code example, screenshot, or link to a repository:
The text was updated successfully, but these errors were encountered: