Skip to content

Commit a9c90f1

Browse files
committed
fix: toolbar key same.
:
1 parent 5abe59d commit a9c90f1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/young-years-pay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-image-previewer': patch
3+
---
4+
5+
fix: toolbar key same

packages/core/src/ui/DragToolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export const DragToolbar: FC<DragToolbarProps> = ({
269269
if (key === 'split') {
270270
key = `split-${index}`
271271
}
272-
return <Component key={item} {...props} />
272+
return <Component key={key} {...props} />
273273
}
274274
const Component = item.component
275275
return <Component key={item.key} {...props} />

0 commit comments

Comments
 (0)