Skip to content

Commit

Permalink
Set ownProps.onFocus when context.onFocus is undefined. (#15069)
Browse files Browse the repository at this point in the history
This fixes the PostTitle focus issue on mobile
  • Loading branch information
etoledom authored Apr 19, 2019
1 parent 3f1964c commit 0883192
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ const RichTextContainer = compose( [
return {
clientId: context.clientId,
isSelected: context.isSelected,
onFocus: context.onFocus,
onFocus: context.onFocus || ownProps.onFocus,
};
} ),
] )( RichText );
Expand Down

0 comments on commit 0883192

Please sign in to comment.