Skip to content

Commit

Permalink
Fix issue where the list block was not being selected on focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
etoledom committed May 9, 2019
1 parent 77bb219 commit cc12da7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cc12da7

Please sign in to comment.