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:
committed by
Ian Storm Taylor
parent
22576e521f
commit
1b9d3944a9
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user