From dee166a3458b982500b05c20a4d8db548a81d88f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ella=20van=C2=A0Durpe?= Date: Mon, 1 Apr 2019 18:00:46 +0200 Subject: [PATCH] Fix memize option key typo (#14750) --- packages/block-editor/src/components/rich-text/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/rich-text/index.js b/packages/block-editor/src/components/rich-text/index.js index b49b05f63ad7c..e2ce490828f11 100644 --- a/packages/block-editor/src/components/rich-text/index.js +++ b/packages/block-editor/src/components/rich-text/index.js @@ -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( {