From a9c4e7d3170bf4950c5ab99b8d8dacdede88ac9a Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 8 Aug 2026 13:24:18 +0200 Subject: [PATCH] add component.start() to both list and detail (framework calls instance.start) --- plugin.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugin.js b/plugin.js index dac58d0..b91254a 100644 --- a/plugin.js +++ b/plugin.js @@ -50,6 +50,12 @@ return comp.render(); }; + // Framework (ActivitySlide.start) calls component.start() after the + // activity is ready. Refresh the selector so focus lands on a card. + this.start = function () { + if (Lampa.Selector) Lampa.Selector.update(); + }; + this.render = function () { var html = document.createElement('div'); html.className = 'mymovies'; @@ -131,6 +137,11 @@ return comp.render(); }; + // Framework (ActivitySlide.start) calls component.start(). + this.start = function () { + if (Lampa.Selector) Lampa.Selector.update(); + }; + this.render = function () { var m = selected; if (!m) { Lampa.Activity.back(); return document.createElement('div'); }