1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-02 11:42:53 +02:00

fix syncing-operations example

This commit is contained in:
Ian Storm Taylor
2018-01-04 15:38:16 -08:00
parent 1b73d5531c
commit 68bf8a00bf

View File

@@ -248,7 +248,9 @@ class SyncingOperationsExample extends React.Component {
.filter(o => o.type != 'set_selection' && o.type != 'set_value') .filter(o => o.type != 'set_selection' && o.type != 'set_value')
.toJS() .toJS()
setTimeout(() => {
this.two.applyOperations(ops) this.two.applyOperations(ops)
})
} }
/** /**
@@ -262,7 +264,9 @@ class SyncingOperationsExample extends React.Component {
.filter(o => o.type != 'set_selection' && o.type != 'set_value') .filter(o => o.type != 'set_selection' && o.type != 'set_value')
.toJS() .toJS()
setTimeout(() => {
this.one.applyOperations(ops) this.one.applyOperations(ops)
})
} }
/** /**