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

Clicking on new field causes blur to occur #202

Closed
kevinansley opened this issue Dec 2, 2017 · 6 comments
Closed

Clicking on new field causes blur to occur #202

kevinansley opened this issue Dec 2, 2017 · 6 comments

Comments

@kevinansley
Copy link

On Android, when I am currently on a TextInput and touch on a new field, the keyboard goes away, but the field I just touched is no longer selected.

Ideal behavior would be to focus on the new TextInput, keep the keyboard open (or switch keyboard if type is different), and scroll to new position.

@coderdave
Copy link

Looks like this is fixed here: facebook/react-native@8cf36d8

It looks like it hasn't been merged to master though. :/

@kevinansley
Copy link
Author

Great! Closing out as the issue is a bigger, React-native issue. Thanks!

@lebedev
Copy link

lebedev commented Jan 25, 2018

Looks like this is fixed here: facebook/react-native@8cf36d8

It looks like it hasn't been merged to master though. :/

Related PR.

@lebedev
Copy link

lebedev commented Mar 13, 2018

@kevinansley I tried to use forked react-native with the fix @coderdave suggested, but it didn't work. And it shouldn't have worked, because keyboardDismissMode='on-drag' (behavior of which that fix addresses) isn't used in this repo. And even when I use just ScrollView with two TextInputs, the issue persists.

So, it's definitely something within react-native itself.

@lebedev
Copy link

lebedev commented Mar 13, 2018

And apparently it's the intended behavior.

@kevinansley if you still have this issue, it's actually related to facebook/react-native#17434. And there's the fix right there in this comment. I added keyboardShouldPersistTaps="handled" prop to KeyboardAwareScrollView and voila.

@kevinansley
Copy link
Author

Thanks angly-cat! I ended up finding a solution by using NativeBase Container, Content, and Input controls

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