From 86d730a3a9b77fcaf99976d406fa70cb241e7adc Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 22 Jan 2015 17:27:57 -0700 Subject: [PATCH] Always forceUpdate when editor component is visible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/text-editor-component.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editor-component.coffee b/src/text-editor-component.coffee index d3ba0db78..17f0f84bd 100644 --- a/src/text-editor-component.coffee +++ b/src/text-editor-component.coffee @@ -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()