lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.75k stars 499 forks source link

`onOpen` doesn't trigger when the user tap on the text - but does when tapping on icon (android) #351

Open marioteik opened 4 years ago

marioteik commented 4 years ago

Describe the bug
onOpen doesn't trigger when the user tap on the text.

Expected behavior
onOpen should trigger when you tap anywhere inside the select area.

Screenshots
"n/a"

Additional details

Reproduction and/or code sample
https://snack.expo.io/@marioteik/brave-cashew

If you click in the arrow you can see that the log works (android emulator). The same thing doesn't happen when you click the text.

Yennnful commented 4 years ago

Is there any solution? I am facing the same issue

eacanalg commented 4 years ago

Just wanted to drop that this is caused by the position:'absolute' attribute under the headlessAndroidPicker class (I'm not sure if this affect IOS). Im still trying to find a way to fix this without messing the component style.

Christophe235 commented 4 years ago

Any update about this? I'm facing a similar issue

erie-e9 commented 3 years ago

Facing same issue, help +1

papidb commented 3 years ago

Facing same issue, help +1

MarcoVercosa commented 2 years ago

Facing same issue, help +1

15bedirhan commented 2 years ago

Facing same issue, help +1

fedeolto commented 2 years ago

help +1

MatkoMilic commented 9 months ago

Agreed

Bowske commented 8 months ago

Consider touchableWrapperProps={{ onFocus: onOpen, onBlur: onClose, }} on Android.