Skip to content

Commit

Permalink
Fix memize option key typo (#14750)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored Apr 1, 2019
1 parent 5f213ce commit 02d0184
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ export class RichText extends Component {
this.handleHorizontalNavigation = this.handleHorizontalNavigation.bind( this );
this.onPointerDown = this.onPointerDown.bind( this );

this.formatToValue = memize( this.formatToValue.bind( this ), { size: 1 } );
this.formatToValue = memize(
this.formatToValue.bind( this ),
{ maxSize: 1 }
);

this.savedContent = value;
this.patterns = getPatterns( {
Expand Down

0 comments on commit 02d0184

Please sign in to comment.