diff --git a/src/lib/teact/teact-dom.ts b/src/lib/teact/teact-dom.ts index 8ba284043..01b5affd5 100644 --- a/src/lib/teact/teact-dom.ts +++ b/src/lib/teact/teact-dom.ts @@ -517,7 +517,7 @@ function renderFastListChildren($current: VirtualElementParent, $new: VirtualEle const newOrderKey = 'props' in $newChild ? $newChild.props.teactOrderKey : undefined; // That is indicated by a changed `teactOrderKey` value const shouldMoveNode = ( - currentChildInfo.index !== currentPreservedIndex && currentChildInfo.orderKey !== newOrderKey + currentChildInfo.index !== currentPreservedIndex && (!newOrderKey || currentChildInfo.orderKey !== newOrderKey) ); const isMovingDown = shouldMoveNode && currentPreservedIndex > currentChildInfo.index;