Browser History: Fix flicker when closing chat on iOS (#2639)
This commit is contained in:
parent
723c0b4924
commit
1868d1f2a9
@ -47,7 +47,7 @@ const useShowTransition = (
|
||||
}
|
||||
|
||||
// `noCloseTransition`, when set to true, should remove the open class immediately
|
||||
const shouldHaveOpenClassName = hasOpenClassName && !(noCloseTransition && !isOpen);
|
||||
const shouldHaveOpenClassName = (hasOpenClassName && !(noCloseTransition && !isOpen)) || (noOpenTransition && isOpen);
|
||||
const isClosing = Boolean(closeTimeoutRef.current);
|
||||
const shouldRender = isOpen || isClosing;
|
||||
const transitionClassNames = buildClassName(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user