From 0883192c549e356dc04890cb0aa800be7e1a8500 Mon Sep 17 00:00:00 2001 From: etoledom Date: Fri, 19 Apr 2019 12:44:09 +0200 Subject: [PATCH] Set ownProps.onFocus when context.onFocus is undefined. (#15069) This fixes the PostTitle focus issue on mobile --- packages/block-editor/src/components/rich-text/index.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/rich-text/index.native.js b/packages/block-editor/src/components/rich-text/index.native.js index 95a2d91d2f2ff..ffea24cffbf2a 100644 --- a/packages/block-editor/src/components/rich-text/index.native.js +++ b/packages/block-editor/src/components/rich-text/index.native.js @@ -768,7 +768,7 @@ const RichTextContainer = compose( [ return { clientId: context.clientId, isSelected: context.isSelected, - onFocus: context.onFocus, + onFocus: context.onFocus || ownProps.onFocus, }; } ), ] )( RichText );