From 1421cddf7ea159053795430a6a0a9e6459e91d52 Mon Sep 17 00:00:00 2001 From: etoledom Date: Thu, 9 May 2019 13:44:16 +0200 Subject: [PATCH] Add isSelected prop from context to RichText --- packages/block-editor/src/components/rich-text/index.native.js | 3 ++- 1 file changed, 2 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 e10e91e2c6a05..0ecb6b11df2d0 100644 --- a/packages/block-editor/src/components/rich-text/index.native.js +++ b/packages/block-editor/src/components/rich-text/index.native.js @@ -817,9 +817,10 @@ RichText.defaultProps = { const RichTextContainer = compose( [ withInstanceId, - withBlockEditContext( ( { clientId, onFocus }, ownProps ) => { + withBlockEditContext( ( { clientId, onFocus, isSelected }, ownProps ) => { return { clientId: clientId, + isSelected: isSelected, onFocus: onFocus || ownProps.onFocus } }),