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; }); }