We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cf9987 commit 56af391Copy full SHA for 56af391
src/CSSMotionList.tsx
@@ -130,7 +130,9 @@ export function genCSSMotionList(
130
131
const Component = component || React.Fragment;
132
const motionProps = pick(restProps, MOTION_PROP_NAMES as any);
133
- const componentProps = omit(restProps, MOTION_PROP_NAMES as any);
+ const componentProps = component
134
+ ? pick(restProps, ['key'] as any)
135
+ : omit(restProps, [...MOTION_PROP_NAMES, 'keys'] as any);
136
137
return (
138
<Component {...componentProps}>
0 commit comments