FIX: Close multi select when switching topics

This commit is contained in:
Robin Ward 2016-06-17 14:19:58 -04:00
parent 83e46cc302
commit efafdd252e
1 changed files with 3 additions and 0 deletions

View File

@ -206,6 +206,9 @@ const TopicRoute = Discourse.Route.extend({
this.searchService.set('searchContext', model.get('searchContext'));
// close the multi select when switching topics
controller.set('multiSelect', false);
this.controllerFor('composer').set('topic', model);
this.topicTrackingState.trackIncoming('all');
controller.subscribe();