Skip to content

Commit 5ea86c4

Browse files
author
Chris Johnson
committed
fix(transitions): Change phases back
Bug appears to be with the unountOnExit prop for react-transition-group skipping the exited phase
1 parent 7363b98 commit 5ea86c4

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

src/animations/FadeInOut/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const statusStyles = {
1919
opacity: 0,
2020
},
2121
exiting: {
22-
opacity: 1,
22+
opacity: 0,
2323
},
2424
};
2525

src/animations/FadeTransform/index.jsx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,21 @@ const statusStyles = {
1212
opacity: 1,
1313
},
1414
entering: {
15-
opacity: 1,
15+
opacity: 0,
1616
},
1717
exited: {
1818
opacity: 0,
1919
},
2020
exiting: {
21-
opacity: 0,
21+
opacity: 1,
2222
},
2323
};
2424

25-
const FadeTransform = ({
26-
children,
27-
enter,
28-
exit,
29-
exiting,
30-
entering,
31-
...props
32-
}) => {
25+
const FadeTransform = ({ children, enter, exit, ...props }) => {
3326
const pos = {
34-
entering: entering || enter,
27+
entering: exit,
3528
entered: enter,
36-
exiting: exiting || exit,
29+
exiting: enter,
3730
exited: exit,
3831
};
3932

0 commit comments

Comments
 (0)