mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 22:45:18 +02:00
fix default placeholder emptiness check, closes #1259
This commit is contained in:
@@ -34,8 +34,8 @@ class DefaultPlaceholder extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { editor, state } = this.props
|
const { editor, state } = this.props
|
||||||
if (state.document.nodes.size > 1) return null
|
|
||||||
if (!editor.props.placeholder) return null
|
if (!editor.props.placeholder) return null
|
||||||
|
if (state.document.getBlocks().size > 1) return null
|
||||||
|
|
||||||
const style = {
|
const style = {
|
||||||
pointerEvents: 'none',
|
pointerEvents: 'none',
|
||||||
|
Reference in New Issue
Block a user