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

fix deprecated kind usage in leaf components

This commit is contained in:
Ian Storm Taylor
2018-02-21 18:05:54 -08:00
parent 514f3de1be
commit 38020c73a6

View File

@@ -127,7 +127,7 @@ class Leaf extends React.Component {
// to support expected plain text.
if (
text === '' &&
parent.kind === 'block' &&
parent.object === 'block' &&
parent.text === '' &&
parent.nodes.size === 1
) {