From 3d4f98e9b3600e72f566b2a002bbe950f048af6e Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Wed, 4 Jun 2025 20:40:24 +0200 Subject: [PATCH] TeactN: Fix activation function call on mount (follow-up) --- src/lib/teact/teactn.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/teact/teactn.tsx b/src/lib/teact/teactn.tsx index 58088b4be..55091fd0e 100644 --- a/src/lib/teact/teactn.tsx +++ b/src/lib/teact/teactn.tsx @@ -295,11 +295,13 @@ function activateContainer(container: Container, global: GlobalState, props: Pro } return activationFn(global, props, (stickTo: any) => { - if (stickTo && !stuckTo) { + if (stuckTo) { + return stuckTo === stickTo; + } else if (stickTo !== undefined) { container.stuckTo = stickTo; } - return stickTo && (!stuckTo || stuckTo === stickTo); + return true; }); }