Fix corner cases related to lifecycle state of EditorComponent on events

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2014-11-04 14:35:53 -07:00
parent 9b70cf2044
commit 100af7d27d
3 changed files with 6 additions and 2 deletions

View File

@@ -435,7 +435,8 @@ TextEditorComponent = React.createClass
@refs.input.focus()
blurred: ->
@setState(focused: false)
if @isMounted()
@setState(focused: false)
onTextInput: (event) ->
event.stopPropagation()