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