From dc5bfd550b9c2eefe27c413266216a050b302cbd Mon Sep 17 00:00:00 2001 From: Thorn Walli Date: Mon, 19 Feb 2024 12:14:20 +0100 Subject: [PATCH] fix(image): added load trigger for mounted with complete --- src/runtime/components/SpeedkitImage/Base.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/runtime/components/SpeedkitImage/Base.vue b/src/runtime/components/SpeedkitImage/Base.vue index ca1b24a818..8f8d5679fe 100644 --- a/src/runtime/components/SpeedkitImage/Base.vue +++ b/src/runtime/components/SpeedkitImage/Base.vue @@ -161,12 +161,15 @@ export default { mounted() { this.loading = !this.$el.complete; + if (!this.loading) { + this.onLoad({ target: this.$el }); + } }, methods: { onLoad(e) { this.loading = false; - this.$emit('load', e.target.currentSrc); + this.$emit('load', e.target); } } };