mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only focus when the component is mounted
This commit is contained in:
@@ -522,7 +522,7 @@ EditorComponent = React.createClass
|
||||
@subscribe atom.config.observe 'editor.useHardwareAcceleration', @setUseHardwareAcceleration
|
||||
|
||||
onFocus: ->
|
||||
@refs.input.focus()
|
||||
@refs.input.focus() if @isMounted()
|
||||
|
||||
onTextInput: (event) ->
|
||||
event.stopPropagation()
|
||||
|
||||
Reference in New Issue
Block a user