add key attribute to make image refresh in media modal to give feedback

when images are still loaded
This commit is contained in:
Henry Jameson 2021-08-15 19:43:52 +03:00
parent 777f6c0162
commit f5823a96e9

View File

@ -8,6 +8,7 @@
v-if="type === 'image'"
class="modal-image"
:src="currentMedia.url"
:key="currentMedia.url"
:alt="currentMedia.description"
:title="currentMedia.description"
@touchstart.stop="mediaTouchStart"
@ -19,11 +20,13 @@
class="modal-image"
:attachment="currentMedia"
:controls="true"
:key="currentMedia.url"
/>
<audio
v-if="type === 'audio'"
class="modal-image"
:src="currentMedia.url"
:key="currentMedia.url"
:alt="currentMedia.description"
:title="currentMedia.description"
controls
@ -31,6 +34,7 @@
<Flash
v-if="type === 'flash'"
class="modal-image"
:key="currentMedia.url"
:src="currentMedia.url"
:alt="currentMedia.description"
:title="currentMedia.description"