Don’t handle text editor focus when it already has focus

This commit is contained in:
Nathan Sobo
2014-10-21 10:17:57 -06:00
parent adaf1829da
commit cf3f1aa2eb

View File

@@ -89,7 +89,11 @@ class TextEditorElement extends HTMLElement
React.unmountComponentAtNode(this)
@component = null
focused: ->
focused: (event) ->
if @hasFocus()
event.stopPropagation()
return
if @component?
@component.focused()
else