mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 02:03:59 +02:00
If editor contains nested editable components and the native selection enters (#692)
one of these, focus moves from the `Content` DOM element to the new active element but editor doesn't really lose focus and selection must not be blurred.
This commit is contained in:
committed by
Ian Storm Taylor
parent
8a81d73ec1
commit
11de44acdd
@@ -272,6 +272,7 @@ class Content extends React.Component {
|
|||||||
if (this.props.readOnly) return
|
if (this.props.readOnly) return
|
||||||
if (this.tmp.isCopying) return
|
if (this.tmp.isCopying) return
|
||||||
if (!this.isInContentEditable(event)) return
|
if (!this.isInContentEditable(event)) return
|
||||||
|
if (this.element.contains(event.relatedTarget)) return
|
||||||
|
|
||||||
const data = {}
|
const data = {}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user