1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-11 09:43:58 +02:00

Fix: prop name (#2780)

Nodes weren't properly rendering because the Editor was trying to call the function prop renderBlock but instead another called renderNode was passed.
This commit is contained in:
Jon Portella
2019-05-20 22:34:30 +02:00
committed by Ian Storm Taylor
parent 7adf56ffd1
commit fbe70a1f28

View File

@@ -258,7 +258,7 @@ class App extends React.Component {
value={this.state.value}
onChange={this.onChange}
// Add the ability to render our nodes and marks...
renderNode={this.renderNode}
renderBlock={this.renderNode}
renderMark={this.renderMark}
/>
)