From dc732352327f8a12fdc40c9b8ffffc286dae0e88 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 24 Jun 2014 15:04:32 +0200 Subject: [PATCH] Fixes incomplete tags showing when switching to edit a different post closes #3065 - send 'reset' action to PostTagsInputController when associated view is destroyed --- core/client/views/post-tags-input.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/client/views/post-tags-input.js b/core/client/views/post-tags-input.js index b17f7b285d..b77e3da864 100644 --- a/core/client/views/post-tags-input.js +++ b/core/client/views/post-tags-input.js @@ -22,6 +22,10 @@ var PostTagsInputView = Ember.View.extend({ this.get('controller').send('loadAllTags'); }, + willDestroyElement: function () { + this.get('controller').send('reset'); + }, + overlayStyles: function () { var styles = [], leftPos;