Only forceUpdate of EditorComponent on nextTick if it's mounted

This commit is contained in:
Nathan Sobo
2014-06-20 13:56:50 -06:00
parent ef1ec9b693
commit ef2bdf6365

View File

@@ -206,7 +206,7 @@ EditorComponent = React.createClass
@updateRequested = true
process.nextTick =>
@updateRequested = false
@forceUpdate()
@forceUpdate() if @isMounted()
getRenderedRowRange: ->
{editor, lineOverdrawMargin} = @props