Skip to content

Commit

Permalink
Mobile - Remove unnecessary forceUpdate (#13705)
Browse files Browse the repository at this point in the history
* Remove force update on content size change

* Remove setting minHeight since it is already set in paragraph and heading
  • Loading branch information
pinarol authored Feb 12, 2019
1 parent ba38d23 commit c36f32c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/editor/src/components/rich-text/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ export class RichText extends Component {

onContentSizeChange( contentSize ) {
const contentHeight = contentSize.height;
this.forceUpdate(); // force re-render the component skipping shouldComponentUpdate() See: https://reactjs.org/docs/react-component.html#forceupdate
this.props.onContentSizeChange( {
aztecHeight: contentHeight,
}
Expand Down

0 comments on commit c36f32c

Please sign in to comment.