mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-02 11:42:53 +02:00
fix deprecated kind
usage in leaf components
This commit is contained in:
@@ -127,7 +127,7 @@ class Leaf extends React.Component {
|
|||||||
// to support expected plain text.
|
// to support expected plain text.
|
||||||
if (
|
if (
|
||||||
text === '' &&
|
text === '' &&
|
||||||
parent.kind === 'block' &&
|
parent.object === 'block' &&
|
||||||
parent.text === '' &&
|
parent.text === '' &&
|
||||||
parent.nodes.size === 1
|
parent.nodes.size === 1
|
||||||
) {
|
) {
|
||||||
|
Reference in New Issue
Block a user