From ec590b51189ad3edda15bfc9e0eec012ddf8e27c Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 16 Aug 2021 21:22:10 +0300 Subject: [PATCH] Message List: Fix dissappearing UI in Safari (#1395) --- src/components/ui/Transition.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ui/Transition.tsx b/src/components/ui/Transition.tsx index 1e2b298dc..f9f737c80 100644 --- a/src/components/ui/Transition.tsx +++ b/src/components/ui/Transition.tsx @@ -146,9 +146,9 @@ const Transition: FC = ({ } function onAnimationEnd() { - if (activeIndex !== currentIndexRef.current) return; - requestAnimationFrame(() => { + if (activeIndex !== currentIndexRef.current) return; + container.classList.remove('animating', 'backwards'); childNodes.forEach((node, i) => {