File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ export default function useRTGTransitionProps({
6060 return {
6161 ...props ,
6262 nodeRef,
63- onEnter : handleEnter ,
64- onEntering : handleEntering ,
65- onEntered : handleEntered ,
66- onExit : handleExit ,
67- onExiting : handleExiting ,
68- onExited : handleExited ,
69- addEndListener : handleAddEndListener ,
63+ ... ( onEnter && { onEnter : handleEnter } ) ,
64+ ... ( onEntering && { onEntering : handleEntering } ) ,
65+ ... ( onEntered && { onEntered : handleEntered } ) ,
66+ ... ( onExit && { onExit : handleExit } ) ,
67+ ... ( onExiting && { onExiting : handleExiting } ) ,
68+ ... ( onExited && { onExited : handleExited } ) ,
69+ ... ( addEndListener && { addEndListener : handleAddEndListener } ) ,
7070 children :
7171 typeof children === 'function'
7272 ? ( ( ( status : TransitionStatus , innerProps : Record < string , unknown > ) =>
You can’t perform that action at this time.
0 commit comments