Skip to content

Commit

Permalink
#1133 | Stop propagation of video onClick event to parent
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Apr 5, 2024
1 parent a2cc26e commit 98eb4d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/dataEntryApp/components/Observations.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,15 @@ const Observations = ({ observations, additionalRows, form, customKey, highlight
/>
),
[Concept.dataType.Video]: (
<video preload="auto" controls width={200} height={200}>
<video
preload="auto"
controls
width={200}
height={200}
onClick={event => {
event.stopPropagation();
}}
>
<source src={unsignedMediaUrl} type="video/mp4" />
Sorry, your browser doesn't support embedded videos.
</video>
Expand Down

0 comments on commit 98eb4d1

Please sign in to comment.