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

togglePicker() function close then reopen modal #579

Closed
saaspeter opened this issue May 22, 2024 · 1 comment
Closed

togglePicker() function close then reopen modal #579

saaspeter opened this issue May 22, 2024 · 1 comment

Comments

@saaspeter
Copy link

Describe the bug

I want to close the modal dialog when press on "arrow down" icon, I use tooglePicker, when press the arrow down, the dialog firstly close then reopen the dialog. The demo code also has same issue: https://snack.expo.dev/@lfkwtz/react-native-picker-select , press: the dropdown in the line of "useNativeAndroidPickerStyle".

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://snack.expo.dev/@lfkwtz/react-native-picker-select
  2. Click on dropdown with title of "useNativeAndroidPickerStyle"
  3. in the dialog, click the down arrow icon in the left corner, you can see the dialog firstly close then reopen it again.

the Evn is IOS, the android env has some problem to launch.

Expected behavior

close the dialog, not reopen it.

Screenshots

see: https://snack.expo.dev/@lfkwtz/react-native-picker-select

Additional details

  • Device: Iphone
  • OS: 17.4

Reproduction and/or code sample

https://snack.expo.dev/@lfkwtz/react-native-picker-select
onDownArrow={() => {
this.inputRefs.favSport1.togglePicker();
}}

@saaspeter
Copy link
Author

after I saw the source code, I found there is no need to call togglePicker() function again in onDownArrow, because the source code already call togglePicker(). So I think need update the code in https://snack.expo.dev/@lfkwtz/react-native-picker-select
close this bug, hope to update the snack code.

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

1 participant