mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Fix corner cases related to lifecycle state of EditorComponent on events
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
@@ -435,7 +435,8 @@ TextEditorComponent = React.createClass
|
||||
@refs.input.focus()
|
||||
|
||||
blurred: ->
|
||||
@setState(focused: false)
|
||||
if @isMounted()
|
||||
@setState(focused: false)
|
||||
|
||||
onTextInput: (event) ->
|
||||
event.stopPropagation()
|
||||
|
||||
Reference in New Issue
Block a user