mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 21:21:21 +02:00
Merge remote-tracking branch 'ianstormtaylor/master'
This commit is contained in:
@@ -125,8 +125,10 @@ class Node extends React.Component {
|
|||||||
// the node, to allow for intuitive selection-based rendering.
|
// the node, to allow for intuitive selection-based rendering.
|
||||||
if (
|
if (
|
||||||
this.props.node.kind != 'text' &&
|
this.props.node.kind != 'text' &&
|
||||||
this.props.state.isFocused &&
|
(
|
||||||
this.props.state.selection.hasEdgeIn(this.props.node)
|
props.state.isFocused != this.props.state.isFocused ||
|
||||||
|
this.props.state.selection.hasEdgeIn(this.props.node) != props.state.selection.hasEdgeIn(props.node)
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user