Skip to content

Commit 9d06d5a

Browse files
committed
fix: check other props for react state change
1 parent d607c30 commit 9d06d5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-flicking/src/react-flicking/Flicking.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>>
267267
const nextChild = nextChildren[idx];
268268

269269
if (child.key && nextChild.key) {
270-
return child.key === nextChild.key;
270+
return child.key === nextChild.key && Object.keys(child.props).every(key => child.props[key] === nextChild.props[key]);
271271
} else {
272272
return child === nextChild;
273273
}

0 commit comments

Comments
 (0)