Skip to content

Commit

Permalink
RichText: Remove unused ref assignment to RichText (#11222)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored Oct 31, 2018
1 parent 8ad5fbd commit 0001042
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import memize from 'memize';
/**
* WordPress dependencies
*/
import { Component, Fragment, RawHTML, createRef } from '@wordpress/element';
import { Component, Fragment, RawHTML } from '@wordpress/element';
import {
isHorizontalEdge,
getRectangleFromRange,
Expand Down Expand Up @@ -115,7 +115,6 @@ export class RichText extends Component {
this.formatToValue = memize( this.formatToValue.bind( this ), { size: 1 } );

this.savedContent = value;
this.containerRef = createRef();
this.patterns = getPatterns( {
onReplace,
multilineTag: this.multilineTag,
Expand Down Expand Up @@ -933,7 +932,6 @@ export class RichText extends Component {

return (
<div className={ classes }
ref={ this.containerRef }
onFocus={ this.setFocusedElement }
>
{ isSelected && ! inlineToolbar && (
Expand Down

0 comments on commit 0001042

Please sign in to comment.