Skip to content

Commit

Permalink
Add isSelected prop from context to RichText
Browse files Browse the repository at this point in the history
  • Loading branch information
etoledom committed May 9, 2019
1 parent cc12da7 commit 1421cdd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}),
Expand Down

0 comments on commit 1421cdd

Please sign in to comment.