Skip to content

Commit

Permalink
Fix initial selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Apr 12, 2019
1 parent 18f4c57 commit e158037
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export class RichText extends Component {
}

this.recalculateBoundaryStyle();
this.onSelectionChange();

document.addEventListener( 'selectionchange', this.onSelectionChange );
}
Expand Down

0 comments on commit e158037

Please sign in to comment.