react-native-modalize icon indicating copy to clipboard operation
react-native-modalize copied to clipboard

Issue with input inside modalize

Open cuongnv-dev opened this issue 3 years ago • 5 comments

Describe the bug I have created a modalize with input and submit button. When the input has focused, the keyboard shows up, and when I press the submit button, first it closes the keyboard, not executing the onPress function. Then when the keyboard is down, I can use the onPress function normally

Reproduce

code

cuongnv-dev avatar Nov 19 '21 18:11 cuongnv-dev

i have the same annoying problem, did you find any solution for it? @cuongnv-dev

MursiDirect avatar Nov 27 '21 10:11 MursiDirect

@cuongnv-dev @MursiDirect you need to pass this in modalize

scrollViewProps={{ keyboardShouldPersistTaps: "handled", }}

BharatBhushan2907 avatar Dec 09 '21 11:12 BharatBhushan2907

@cuongnv-dev @MursiDirect you need to pass this in modalize

scrollViewProps={{ keyboardShouldPersistTaps: "handled", }}

Not work for me.

joelemanoel avatar Dec 17 '21 16:12 joelemanoel

I have a similar issue where if the modal is set to alwaysOpen and then I open it up via a button press using onPress={() => modalizeRef.current.open('top')} it requires 2 taps before my content will start scrolling. This is not an issue when I open the modal by swiping up. I also came to the conclusion that scrollViewProps={{ keyboardShouldPersistTaps: "handled", }} would be my fix but it does not fix it.

kurtiscc avatar Jan 07 '22 00:01 kurtiscc

I have a similar issue where if the modal is set to alwaysOpen and then I open it up via a button press using onPress={() => modalizeRef.current.open('top')} it requires 2 taps before my content will start scrolling. This is not an issue when I open the modal by swiping up. I also came to the conclusion that scrollViewProps={{ keyboardShouldPersistTaps: "handled", }} would be my fix but it does not fix it.

Thanks, this helped me a lot!

mateuscesarglima avatar Apr 01 '24 02:04 mateuscesarglima