Skip to content

Commit

Permalink
Add key prop to video source (#260)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Hervieu <valentin.hervieu@ricardo.ch>
  • Loading branch information
MatixYo and Valentin Hervieu committed Jun 3, 2021
1 parent c427986 commit 102af97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ class Cropper extends React.Component<CropperProps, State> {
controls={false}
>
{(Array.isArray(video) ? video : [{ src: video }]).map((item) => (
<source {...item} />
<source key={item.src} {...item} />
))}
</video>
)
Expand Down

0 comments on commit 102af97

Please sign in to comment.