Skip to content

Check if onFocus is not undefined before calling it#14967

Merged
marecar3 merged 3 commits intomasterfrom
rnmobile/865-on_focus_can_be_sometimes_unefined_on_iOS
Apr 12, 2019
Merged

Check if onFocus is not undefined before calling it#14967
marecar3 merged 3 commits intomasterfrom
rnmobile/865-on_focus_can_be_sometimes_unefined_on_iOS

Conversation

@marecar3
Copy link
Copy Markdown
Contributor

@marecar3 marecar3 added the Mobile Web Viewport sizes for mobile and tablet devices label Apr 12, 2019
@marecar3 marecar3 requested review from etoledom and mzorz April 12, 2019 20:02
@marecar3 marecar3 self-assigned this Apr 12, 2019
Copy link
Copy Markdown
Contributor

@mzorz mzorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marecar3 marecar3 merged commit 85edc75 into master Apr 12, 2019
@marecar3 marecar3 deleted the rnmobile/865-on_focus_can_be_sometimes_unefined_on_iOS branch April 12, 2019 22:31
@etoledom
Copy link
Copy Markdown
Contributor

Just to complement:
The real cause of the error is covered here: #14969
This PR just silence the error.

Still good to guard the prop call before calling it ✅
Thank you @marecar3

mchowning pushed a commit to mchowning/gutenberg that referenced this pull request Apr 15, 2019
* Check if onFocus is not undefined before calling it
@youknowriad youknowriad added this to the 5.5 (Gutenberg) milestone Apr 15, 2019
@gziolo gziolo added Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) and removed Mobile Web Viewport sizes for mobile and tablet devices labels Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Post Title can't be re-focused after focus has changed

5 participants