From 1b9d3944a9483ae4d0b207c4f6ef04d6cc29bb16 Mon Sep 17 00:00:00 2001 From: Stan Chang Khin Boon Date: Sat, 30 Dec 2017 02:42:32 +0800 Subject: [PATCH] `change.operations` is immutable `List` thus we should `size` property instead of `length` (#1478) --- packages/slate-react/src/components/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/slate-react/src/components/editor.js b/packages/slate-react/src/components/editor.js index 6edadb53d..018e35f64 100644 --- a/packages/slate-react/src/components/editor.js +++ b/packages/slate-react/src/components/editor.js @@ -178,7 +178,7 @@ class Editor extends React.Component { */ queueChange = (change) => { - if (change.operations.length) { + if (change.operations.size) { debug('queueChange', { change }) this.tmp.change = change }