Pārlūkot izejas kodu

fix issue with updating interactive images

Falko Schindler 2 gadi atpakaļ
vecāks
revīzija
14b882f6df
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      nicegui/elements/interactive_image.js

+ 3 - 0
nicegui/elements/interactive_image.js

@@ -79,6 +79,9 @@ Vue.component("interactive_image", {
     };
     const connectInterval = setInterval(sendConnectEvent, 100);
   },
+  updated() {
+    this.image.src = this.$props.jp_props.options.source;
+  },
   methods: {
     set_source(source) {
       if (this.loading) {