Always forceUpdate when editor component is visible

Fixes #5187. Giving up after 90 minutes on producing a failing test case
because this is all changing soon anyway and getting simpler. I’m
willing to risk this regressing to solve it now and move on.
This commit is contained in:
Nathan Sobo
2015-01-22 17:27:57 -07:00
parent 99ff482afe
commit 86d730a3a9

View File

@@ -224,7 +224,7 @@ TextEditorComponent = React.createClass
@props.editor.setVisible(true)
@performedInitialMeasurement = true
@updatesPaused = false
@forceUpdate() if @updateRequestedWhilePaused and @canUpdate()
@forceUpdate() if @canUpdate()
requestUpdate: ->
return unless @canUpdate()