I did some more testing and and narrowed the problem down to animations.
- If you have a move animation on the parent container, it breaks the modal.
- Apparently it works with opacity animations.
Seems like a bug to me. Animating a cart should not break the cart.