1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-24 16:02:55 +02:00

change.operations is immutable List thus we should size property instead of length (#1478)

This commit is contained in:
Stan Chang Khin Boon
2017-12-30 02:42:32 +08:00
committed by Ian Storm Taylor
parent 22576e521f
commit 1b9d3944a9

View File

@@ -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
}