1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 20:51:20 +02:00

add value deprecations

This commit is contained in:
Ian Storm Taylor
2018-08-21 20:37:08 -07:00
parent 46898fe7f7
commit 7e8ee5b0e8
5 changed files with 54 additions and 139 deletions

View File

@@ -442,7 +442,8 @@ class Content extends React.Component {
renderNode = (child, isSelected, decorations) => {
const { editor, readOnly } = this.props
const { value } = editor
const { document, isFocused } = value
const { document, selection } = value
const { isFocused } = selection
return (
<Node

View File

@@ -367,7 +367,7 @@ function BeforePlugin() {
function onInput(event, change, editor) {
if (isComposing) return true
if (change.value.isBlurred) return true
if (change.value.selection.isBlurred) return true
debug('onInput', { event })
}