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:
@@ -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
|
||||
|
@@ -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 })
|
||||
}
|
||||
|
Reference in New Issue
Block a user