From ddd63528c7487c91a9e3af10ae203a5302a58b7c Mon Sep 17 00:00:00 2001 From: Julian Gonggrijp Date: Wed, 10 Nov 2021 03:45:09 +0100 Subject: [PATCH] Pass activation on to subviews in SearchResultListPanel (#449 #501) --- .../panel-search-results/search-result-list-panel.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/panel-search-results/search-result-list-panel.ts b/frontend/src/panel-search-results/search-result-list-panel.ts index c5f7d8ab..ed04371e 100644 --- a/frontend/src/panel-search-results/search-result-list-panel.ts +++ b/frontend/src/panel-search-results/search-result-list-panel.ts @@ -1,6 +1,10 @@ import { extend, get } from 'lodash'; -import { CompositeView, ViewOptions as BaseOpt } from '../core/view'; +import { + CompositeView, + callActivate, + ViewOptions as BaseOpt, +} from '../core/view'; import FlatItem from '../common-adapters/flat-item-model'; import explorerChannel from '../explorer/explorer-radio'; import { announceRoute } from '../explorer/utilities'; @@ -75,6 +79,10 @@ export default class SearchResultListPanel extends CompositeView { removeSpinner(): void { this.dispose('spinner'); } + + activate(): this { + return this.forEachSubview(callActivate); + } } extend(SearchResultListPanel.prototype, {