-
Notifications
You must be signed in to change notification settings - Fork 490
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
Select won't close on iOS #264
Comments
It isn't just you. Plese does this have a solution. I haven't been able to complete my project because of this. |
I don't know why but setting the Picker height 1 unit less than the modalViewBottom and adding overflow hidden solves the problem.
|
Will try this now. Thanks in advanced! |
I'm experiencing the same issue. I'm at the point where I have built my own toggle and my own modal, importing the default Picker component from react-native. However I seem to be able to reproduce the same bug outside of this package. It seems the Picker covers the entire screen somehow, and catches any and all interaction. It might have to do with some weird picker-in-modal interaction. If anyone finds a solution, I would be happy to hear it. |
I created #274 to address the issue. |
@gamezinfantes What version are you on? I tried your workaround but don't seem to work. I'm on version |
just spun up a brand new app. react 16.11 ran with not seeing the issue. seems to be a legit issue based on the activity here - but someone will need to provide me with a reproduction. |
@lfkwtz Can you try it in expo? @danecando seems to be on expo and I too am using expo sdk 35. Besides that, I'm connecting it with redux-form. |
just tried expo - worked fine. i'll need a repro on this. |
Mine was on expo sdk 35.0.0 and with version 6.1.0 of react-native-picker-select. I upgraded to latest react-native-picker-select but there was still an issue. |
then please share code since you are able to reproduce it |
@lfkwtz as I said that I'm connecting it to redux-form, so here is how I implemented it
And here is piece of redux-form code
Hope this helps. |
some problem |
if someone can share a full repro with me, i'd be happy to look into it. @KristenKatona i'm especially curious why this would only fix one of your pickers - what is unique about it? |
@lfkwtz the picker it did NOT fix (on iOS only) was within an extra nested view vs the one that did work. I just removed that extra inner view and it worked. I didn't use the suggestion here at all, I just removed that extra inner view. |
Having the same issue. Example snack: https://snack.expo.io/@ptgodev/nervous-chocolate Expo client on iOS Simulator. iPhone 8, 13.3. |
@rickysullivan just pulled that down and ran on expo-cli with iPhone 8 |
Which cli version?
|
3.20.9 |
Expo client app or did you build a standalone?
|
client |
Client version? |
2.15.4.10229 |
I'm facing this issue as well, I've placed console log in the code in line 343 corresponding to the Edit: only the |
any solutions? |
Seeing this issue as well. RN: 0.62.2 |
if you’re seeing this issue, please provide a repro |
I had this issue today. My project was working fine yesterday, and today I faced the issue. "react-native": "0.62.2", |
I was also using the workaround:
until today when it stopped working -__- I added a background color and realized that i had changed 'height: 200' to height: 'RFValue(200)' and caused the height of the picker to overlap the done button. ss attached show height at 200 vs RFValue(200) |
I'm solved the problem with |
I got the same problem when using the picker inside a Modal, created by react-navigation. I discovered that apparently the picker itself is overlapping with the "Done" bar just a tiny bit, but enough to mess up the whole thing. So I tried to change the height of it just a little bit and it worked.
crazy |
Hey guys. also faced this issue on iOS simulator. Then tried to install on a device - its working fine. Then tried to reinstall on the simulator (with restarting it) - it is working again Hope it help for somecases |
It's not selecting the last value now, but it's not closing the select window. |
All you need to restart your simulator |
It works, but the right thing was not to need it 🥴 |
I only get this problem when I'm using the iOS simulator. Running on a real device doesn't have this issue for me |
Thank you |
Describe the bug
Select window doesn't close when clicked outside or done is pressed.
To Reproduce
Create a simple select box and try to use it.
Expected behavior
Select View should close and onDonePress should be called when clicked
Screenshots
![2019-12-19 15 19 54](https://user-images.githubusercontent.com/3721977/71208584-4e664800-2277-11ea-83e8-77f970b421ea.gif)
Additional details
Reproduction and/or code sample
Unfortunately it works in an expo snack so I haven't figured out why it isn't working my project environment. Hopefully it's not just me and someone can point me in the right direction.
The text was updated successfully, but these errors were encountered: