FaridSafi / FaridSafi/react-native-gifted-form

handleBlur requires you to touch the screen again to trigger it

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.4k
Forks
211
PR merge metrics
No merged PRs in 30d

Description

When you have an input behind the keyboard that triggers the `container` view's `contentInset` properties to raise it above the keyboard `onFocus` it doesn't return `onBlur`, but rather only once you touch the screen and slightly drag.

Also, this becomes particularly a problem if you have a long form and you are moving from one field to the next (via a handler such as `onSubmitEditing`). The whole form ends up hidden above the visible view area. This is likely related to https://github.com/FaridSafi/react-native-gifted-form/issues/42
where I describe how programatic usage of the `widget.focus()` method doesn't seem to work as well as actually tapping fields.

I'm wondering if anyone knows of something we can call that can trigger it go back immediately on blur??

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with an input behind the keyboard and inspect the container view's contentInset handling around onFocus and onBlur. Compare a normal field tap with onSubmitEditing and widget.focus() usage, then verify that blur restores the visible form area immediately without requiring a touch or drag.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.