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

fix default placeholder emptiness check, closes #1259

This commit is contained in:
Ian Storm Taylor
2017-10-18 13:29:59 -07:00
parent c442e52ca6
commit 0c0be8d1d5

View File

@@ -34,8 +34,8 @@ class DefaultPlaceholder extends React.Component {
render() {
const { editor, state } = this.props
if (state.document.nodes.size > 1) return null
if (!editor.props.placeholder) return null
if (state.document.getBlocks().size > 1) return null
const style = {
pointerEvents: 'none',