TeactN: Fix activation function call on mount (follow-up)
This commit is contained in:
parent
0b40721ede
commit
3d4f98e9b3
@ -295,11 +295,13 @@ function activateContainer(container: Container, global: GlobalState, props: Pro
|
|||||||
}
|
}
|
||||||
|
|
||||||
return activationFn(global, props, (stickTo: any) => {
|
return activationFn(global, props, (stickTo: any) => {
|
||||||
if (stickTo && !stuckTo) {
|
if (stuckTo) {
|
||||||
|
return stuckTo === stickTo;
|
||||||
|
} else if (stickTo !== undefined) {
|
||||||
container.stuckTo = stickTo;
|
container.stuckTo = stickTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
return stickTo && (!stuckTo || stuckTo === stickTo);
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user