Skip to content

Commit db106e3

Browse files
committed
fix: Prevent the prop from passing into CSSTransition
1 parent 772835f commit db106e3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/alert-transition.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ const timeout = { enter: ENTER_TIMEOUT, exit: EXIT_TIMEOUT };
88

99
const AlertTransition = ({ sheet: { classes }, ...props }) =>
1010
props && props.children ? (
11-
<CSSTransition timeout={timeout} classNames={classes} {...props} />
11+
<CSSTransition
12+
timeout={timeout}
13+
classNames={classes}
14+
onExited={props.onExited}
15+
>
16+
{props.children}
17+
</CSSTransition>
1218
) : null;
1319

1420
export default useSheet(transitionStyles)(AlertTransition);

0 commit comments

Comments
 (0)