Skip to content

Commit

Permalink
on direct unmount used display none property for exit
Browse files Browse the repository at this point in the history
  • Loading branch information
shresthabijay committed Apr 5, 2020
1 parent 538c3f7 commit 3470495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FlatTreeRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const FlatTreeRenderer = ({ cursor }) => {
const transitionStyles = {
entering: { opacity: node.isCursorChildren ? 1 : 0, transform: `translateX(${animateIncomingNodeAccToParent ? parentLeft : nodeLeft})` },
entered: { opacity: node.isDistantThought ? 0.35 : 1, transform: `translateX(${nodeLeft})` },
exiting: { opacity: 0, transform: `translateX(${nodeLeft})` },
exiting: { transform: `translateX(${nodeLeft})`, ...node.isCursorChildren ? { display: 'none' } : { opacity: 0 } },
}

// dynamically changing timeout to stop exit animation for some cases
Expand Down

0 comments on commit 3470495

Please sign in to comment.