TeactN: Fix activation function call on mount (follow-up)

This commit is contained in:
Alexander Zinchuk 2025-06-04 20:40:24 +02:00
parent 0b40721ede
commit 3d4f98e9b3

View File

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