aboutsummaryrefslogtreecommitdiff
path: root/src/components/still-image/still-image.vue
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2022-01-08 01:35:16 -0500
committerTusooa Zhu <tusooa@kazv.moe>2022-09-18 13:19:52 -0400
commitb77259a9a0c353ede8ff1d6bf5c13ae91ca7fc7c (patch)
treebddf81c95f81a18ff3809323f1ae7169e42d512f /src/components/still-image/still-image.vue
parentc93da0b865e9a14c6fa952e63c4c4f77f34943bc (diff)
Use StillImage to render emojis in emoji picker
Diffstat (limited to 'src/components/still-image/still-image.vue')
-rw-r--r--src/components/still-image/still-image.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue
index ab3080c8..633fb229 100644
--- a/src/components/still-image/still-image.vue
+++ b/src/components/still-image/still-image.vue
@@ -11,10 +11,11 @@
<!-- NOTE: key is required to force to re-render img tag when src is changed -->
<img
ref="src"
- :key="src"
+ :key="realSrc"
:alt="alt"
:title="alt"
- :src="src"
+ :data-src="dataSrc"
+ :src="realSrc"
:referrerpolicy="referrerpolicy"
@load="onLoad"
@error="onError"