From 11de44acdd0613d8fb7bffe688106544925d0f80 Mon Sep 17 00:00:00 2001 From: AlbertHilb <alberthilbert@gmail.com> Date: Thu, 30 Mar 2017 16:23:46 +0200 Subject: [PATCH] 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. --- src/components/content.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/content.js b/src/components/content.js index 32dc313fa..4f6ff301f 100644 --- a/src/components/content.js +++ b/src/components/content.js @@ -272,6 +272,7 @@ class Content extends React.Component { if (this.props.readOnly) return if (this.tmp.isCopying) return if (!this.isInContentEditable(event)) return + if (this.element.contains(event.relatedTarget)) return const data = {}