From 9a668a7e7bdccd855c17bcfe0491b8d4c6bcfcb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 11 Sep 2014 16:35:04 +0200 Subject: [PATCH] FIX: clear selection when transitioning out of a topic --- app/assets/javascripts/discourse/routes/topic_route.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/routes/topic_route.js b/app/assets/javascripts/discourse/routes/topic_route.js index 516b3787dc4..7e4b5ecd877 100644 --- a/app/assets/javascripts/discourse/routes/topic_route.js +++ b/app/assets/javascripts/discourse/routes/topic_route.js @@ -91,6 +91,7 @@ Discourse.TopicRoute = Discourse.Route.extend({ }, willTransition: function() { + this.controllerFor("quote-button").deselectText(); Em.run.cancel(scheduledReplace); isTransitioning = true; return true;