diff --git a/ghost/admin/app/components/multi-list/list.js b/ghost/admin/app/components/multi-list/list.js index adeea77b68..433f80694a 100644 --- a/ghost/admin/app/components/multi-list/list.js +++ b/ghost/admin/app/components/multi-list/list.js @@ -24,7 +24,7 @@ export default class ListComponent extends Component { willDestroy() { super.willDestroy(...arguments); - window.removeEventListener('keydown', this.onKeyDow, {passive: true}); + window.removeEventListener('keydown', this.onKeyDown, {passive: true}); window.removeEventListener('keyup', this.onKeyUp, {passive: true}); window.removeEventListener('click', this.onWindowClicked, {passive: true}); window.removeEventListener('blur', this.onWindowBlur, {passive: true}); diff --git a/ghost/admin/app/routes/posts.js b/ghost/admin/app/routes/posts.js index e2a9070c81..9182b32227 100644 --- a/ghost/admin/app/routes/posts.js +++ b/ghost/admin/app/routes/posts.js @@ -79,7 +79,7 @@ export default class PostsRoute extends AuthenticatedRoute { } // trigger a background load of all tags and authors for use in filter dropdowns - setupController(controller) { + setupController(controller, model) { super.setupController(...arguments); if (!controller._hasLoadedTags) { @@ -93,6 +93,11 @@ export default class PostsRoute extends AuthenticatedRoute { controller._hasLoadedAuthors = true; }); } + + if (controller.selectionList) { + controller.selectionList.infinityModel = model; + controller.selectionList.clearSelection(); + } } @action