[Dist] Fix modal leave animation