Explorar o código

fix issue with updating interactive images

Falko Schindler %!s(int64=2) %!d(string=hai) anos
pai
achega
14b882f6df
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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) {