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:
parent
1b73d5531c
commit
68bf8a00bf
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user