mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user