From cc12da722df30ae60a244c560fbf354fb017a88c Mon Sep 17 00:00:00 2001 From: etoledom Date: Thu, 9 May 2019 12:36:09 +0200 Subject: [PATCH] Fix issue where the list block was not being selected on focus. --- .../block-editor/src/components/rich-text/index.native.js | 7 ++++++- 1 file changed, 6 insertions(+), 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 6732b3bd577058..e10e91e2c6a05f 100644 --- a/packages/block-editor/src/components/rich-text/index.native.js +++ b/packages/block-editor/src/components/rich-text/index.native.js @@ -817,7 +817,12 @@ RichText.defaultProps = { const RichTextContainer = compose( [ withInstanceId, - withBlockEditContext( ( { clientId } ) => ( { clientId } ) ), + withBlockEditContext( ( { clientId, onFocus }, ownProps ) => { + return { + clientId: clientId, + onFocus: onFocus || ownProps.onFocus + } + }), withSelect( ( select, { clientId, instanceId,