Transition: Fix disappearing content
This commit is contained in:
parent
c92f7a42df
commit
30f633d6cc
@ -87,7 +87,7 @@ const Transition: FC<OwnProps> = ({
|
|||||||
|
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
if (!shouldCleanup || cleanupExceptionKey === prevActiveKey) {
|
if (!shouldCleanup || (cleanupExceptionKey !== undefined && cleanupExceptionKey === prevActiveKey)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user