react-native-picker-select icon indicating copy to clipboard operation
react-native-picker-select copied to clipboard

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

Open marioteik opened this issue 5 years ago • 11 comments

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

  • Device: Mororola One Zoom
  • OS: Android 9 - July 1, 2020
  • react-native-picker-select version: 7.0.0
  • react-native version: 0.62.1
  • expo sdk version: n/a

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.

marioteik avatar Aug 17 '20 23:08 marioteik

Is there any solution? I am facing the same issue

Yennnful avatar Sep 20 '20 09:09 Yennnful

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.

eacanalg avatar Sep 21 '20 21:09 eacanalg

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

Christophe235 avatar Sep 28 '20 08:09 Christophe235

Facing same issue, help +1

erie-e9 avatar Nov 10 '20 16:11 erie-e9

Facing same issue, help +1

papidb avatar Apr 17 '21 16:04 papidb

Facing same issue, help +1

MarcoVercosa avatar Feb 21 '22 05:02 MarcoVercosa

Facing same issue, help +1

15bedirhan avatar Jun 11 '22 13:06 15bedirhan

help +1

fedeolto avatar Jul 30 '22 10:07 fedeolto

Agreed

MatkoMilic avatar Dec 06 '23 02:12 MatkoMilic

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

Bowske avatar Jan 17 '24 15:01 Bowske