From e86b796fa4d10564f2283a03d5755d47363cf78b Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 23 May 2015 08:35:12 +0930 Subject: [PATCH] Only do double redraw if there is a component we need to get rid of --- framework/core/js/forum/src/components/composer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/core/js/forum/src/components/composer.js b/framework/core/js/forum/src/components/composer.js index 74f5dabc6..2db6dd777 100644 --- a/framework/core/js/forum/src/components/composer.js +++ b/framework/core/js/forum/src/components/composer.js @@ -218,8 +218,10 @@ class Composer extends Component { // old composer will remain. To prevent this from happening, we clear the // component and force a redraw, so that the new component will be working // on a blank slate. - this.component = null; - m.redraw(true); + if (this.component) { + this.clear(); + m.redraw(true); + } this.component = component; } }