1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-13 11:44:55 +01: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')
.toJS()
this.two.applyOperations(ops)
setTimeout(() => {
this.two.applyOperations(ops)
})
}
/**
@ -262,7 +264,9 @@ class SyncingOperationsExample extends React.Component {
.filter(o => o.type != 'set_selection' && o.type != 'set_value')
.toJS()
this.one.applyOperations(ops)
setTimeout(() => {
this.one.applyOperations(ops)
})
}
/**