Skip to content
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

Open
williamgurzoni opened this issue Jul 29, 2024 · 2 comments
Open

Android only: onValueChange not fired for placeholder item #604

williamgurzoni opened this issue Jul 29, 2024 · 2 comments

Comments

@williamgurzoni
Copy link

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:

  1. Create a dropdown with a placeholder
  2. Test on iOS, the event is fired when the placeholder item is selected
  3. Test on Android, the event is not fired when the placeholder item is selected

Expected behavior

The onValueChange event should be fired consistently in both platforms when the user selects the placeholder item.

Screenshots

N/A

Additional details

  • react-native-picker-select version: v9.1.3
  • react-native version: v0.73.8
  • @react-native-picker/picker: v2.7.7

Reproduction and/or code sample

https://snack.expo.dev/@gurzoni/issue-rnpickerselect---android-not-firing-onvaluechange-for-placeholder-item?platform=android

@haoansonzeng
Copy link

same issue here

@mmanami-adc
Copy link

Same for me, haven't found a workaround yet since the action is not being triggered at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants