mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 17:53:59 +02:00
Fix forgotten props 'block' for Leaf (#707)
This commit is contained in:
committed by
Ian Storm Taylor
parent
7b4beffabf
commit
affb2eb56a
@@ -152,7 +152,7 @@ class Void extends React.Component {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
renderLeaf = () => {
|
renderLeaf = () => {
|
||||||
const { node, schema, state, editor } = this.props
|
const { block, node, schema, state, editor } = this.props
|
||||||
const child = node.getFirstText()
|
const child = node.getFirstText()
|
||||||
const ranges = child.getRanges()
|
const ranges = child.getRanges()
|
||||||
const text = ''
|
const text = ''
|
||||||
@@ -167,6 +167,7 @@ class Void extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<Leaf
|
<Leaf
|
||||||
key={offsetKey}
|
key={offsetKey}
|
||||||
|
block={block}
|
||||||
editor={editor}
|
editor={editor}
|
||||||
index={index}
|
index={index}
|
||||||
marks={marks}
|
marks={marks}
|
||||||
|
Reference in New Issue
Block a user