mirror of
https://github.com/block/buzz.git
synced 2026-12-01 13:42:45 +00:00
fix(terminal): keep TerminalPanel mounted so exit animation plays
AnimatePresence needs the component to stay in the tree during exit. Previously the parent conditional unmounted it instantly on close, preventing the shrink+fade animation from running.
This commit is contained in:
@@ -411,7 +411,7 @@ export const ChannelPane = React.memo(function ChannelPane({
|
||||
}
|
||||
showTopBorder={false}
|
||||
/>
|
||||
{activeChannel && isTerminalOpen ? (
|
||||
{activeChannel ? (
|
||||
<TerminalPanel
|
||||
channelId={activeChannel.id}
|
||||
isOpen={isTerminalOpen}
|
||||
|
||||
Reference in New Issue
Block a user