Transition: Fix disappearing content

This commit is contained in:
Alexander Zinchuk 2021-06-24 18:42:28 +03:00
parent c92f7a42df
commit 30f633d6cc

View File

@ -87,7 +87,7 @@ const Transition: FC<OwnProps> = ({
useLayoutEffect(() => {
function cleanup() {
if (!shouldCleanup || cleanupExceptionKey === prevActiveKey) {
if (!shouldCleanup || (cleanupExceptionKey !== undefined && cleanupExceptionKey === prevActiveKey)) {
return;
}