-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property keyboardShouldPersistTaps={true} not working in <Modal /> view #10138
Comments
+1, 0.35.0-rc.0, iOS + macOS |
Same problem here, using a list view |
+1 0.36 on iOS |
Have the same issue on iOS. |
Same issue : react native - 0.37 |
Same problem RN 0.39, any idea? |
confirmed, same issue. |
I lost 2 hours because of this bug. |
I can confirm this is not working :/ using RN 0.41.1 |
In my case, I have a ScrollView as the parent of Modal. Setting |
putting the scrollview on the outside of my Modal did not solve issue for me. |
+1 |
Has anyone found a solution for this? |
👍 Same issues |
what fixed it for me is to make sure that all nested scrollviews have this property set. e.g:
This won't work because the parent ScrollView does not have this property set. |
the fix for me was that I had to set anyway, whatever what you want to solve (dismiss/not dismiss/respond to onPress) – you will have to be aware that the |
@despreston & @gre that solved it for me. Once my both my parent and child |
I just use
|
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
I know this is closed. However, I just struggled with this for a few hours as well. Thanks to the comments read here; I found a solution that worked in my situation. I didn't even know that Flatlist would accept the keyboardShouldPersistTaps='always' parameter. I ended up having no extra ScrollViews, simply adding that parameter to Flatlist worked out great.
Cheers |
The only solution I could find is having Credits: @despreston, @gre |
Issue Description
Given a in a , and the TextInput being active (keyboard is shown), I can't get any Touchable... element to respond to onPress before dismissing the keyboard.
Steps to Reproduce / Code Snippets
See the example code below. I would expect the TouchableOpacity (a yellow square) to popup an Alert while the TextInput is active and the keyboard is shown. Instead, I have to tap to dismiss the keyboard first.
The property keyboardShouldPersistTaps={true} does the trick in another view, but not inside of a
Additional Information
The text was updated successfully, but these errors were encountered: