From 2f9aa10dfea925a16282f1f67dccd57b990acfa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 8 May 2018 10:05:39 +0200 Subject: [PATCH] Call display only on current view or view that has a parent It is only needed to refresh the display of a view that is actually displayed which means being attached to the DOM. issue7363 review49271003 --- src/screen.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screen.js b/src/screen.js index f4d943d21d..4de0907445 100644 --- a/src/screen.js +++ b/src/screen.js @@ -1087,7 +1087,9 @@ this.current_view.view_type)); deferreds.push(search_prm); for (var i = 0; i < this.views.length; i++) { - if (this.views[i]) { + if (this.views[i] && + ((this.views[i] == this.current_view) || + this.views[i].el.parent().length)) { deferreds.push(this.views[i].display()); } }