-
Notifications
You must be signed in to change notification settings - Fork 501
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
Android only: onValueChange not fired for placeholder item #604
Comments
same issue here |
Same for me, haven't found a workaround yet since the action is not being triggered at all |
I've got this issue after upgrading the library from
The code is not calling Not sure why this change was necessary, IMO it's up to the developer to interpret the value returned by the picker. If null is meant to represent the placeholder value, than it should be the developer responsibility to handle that null value from it's So in other words, this bug should be transferred to the |
Describe the bug
After updating @react-native-picker/picker to version v2.7.7 the
onValueChange
event stopped working when the user presses the placeholder item. This is an Android only issue.The issue was cause by this PR: react-native-picker/picker#571
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The
onValueChange
event should be fired consistently in both platforms when the user selects the placeholder item.Screenshots
N/A
Additional details
Reproduction and/or code sample
https://snack.expo.dev/@gurzoni/issue-rnpickerselect---android-not-firing-onvaluechange-for-placeholder-item?platform=android
The text was updated successfully, but these errors were encountered: