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