Don't update editor component if we know we are not visible

This commit is contained in:
Nathan Sobo
2017-04-11 15:16:53 -06:00
committed by Antonio Scandurra
parent 95c8950004
commit 2c6490c2e0

View File

@@ -166,6 +166,8 @@ class TextEditorComponent {
}
updateSync (useScheduler = false) {
if (!this.visible) return
this.updateScheduled = false
if (this.resolveNextUpdatePromise) this.resolveNextUpdatePromise()