Only cancel focus events if the editor is or contains the related target

This commit is contained in:
Nathan Sobo
2014-10-21 10:30:39 -06:00
parent dd17e8f018
commit 6f3c53a17a

View File

@@ -90,7 +90,7 @@ class TextEditorElement extends HTMLElement
@component = null
focused: (event) ->
if @hasFocus()
if @contains(event.relatedTarget) or this is event.relatedTarget
event.stopPropagation()
return