summaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/CustomSvgIconRender.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/components/CustomSvgIconRender.vue')
-rw-r--r--apps/files/src/components/CustomSvgIconRender.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/src/components/CustomSvgIconRender.vue b/apps/files/src/components/CustomSvgIconRender.vue
index f025319946f..8c14cf39872 100644
--- a/apps/files/src/components/CustomSvgIconRender.vue
+++ b/apps/files/src/components/CustomSvgIconRender.vue
@@ -35,6 +35,11 @@ export default {
required: true,
},
},
+ watch: {
+ svg() {
+ this.$el.innerHTML = sanitize(this.svg)
+ },
+ },
mounted() {
this.$el.innerHTML = sanitize(this.svg)
},