From 69d342d46ac17e18324b4093765f3443225b71ec Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 26 Jan 2014 09:57:44 +0000 Subject: [PATCH] Stop the reveal widget caching hidden content Previously, when displayed content is hidden by the reveal widget there was an optimisation such that the content was retained in the DOM but hidden using CSS, so that it could be shown again quickly. It turns out that a sideeffect of that optimisation is that clicking through all the sidebar tabs leaves them all active, so that they all need to be refreshed whenever a character is typed in an editor. This commit suppresses the optimisation, so that hidden content is removed from the DOM and the render tree. --- core/modules/widgets/reveal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/widgets/reveal.js b/core/modules/widgets/reveal.js index f04082217..37f709f44 100755 --- a/core/modules/widgets/reveal.js +++ b/core/modules/widgets/reveal.js @@ -157,7 +157,8 @@ RevealWidget.prototype.refresh = function(changedTiddlers) { } else { var refreshed = false; if(changedTiddlers[this.stateTitle]) { - this.updateState(); + // this.updateState(); + this.refreshSelf(); refreshed = true; } return this.refreshChildren(changedTiddlers) || refreshed;