Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/vue_shared/directives/safe_html.js')
-rw-r--r--app/assets/javascripts/vue_shared/directives/safe_html.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_shared/directives/safe_html.js b/app/assets/javascripts/vue_shared/directives/safe_html.js
index c731f742771..fd76b68b083 100644
--- a/app/assets/javascripts/vue_shared/directives/safe_html.js
+++ b/app/assets/javascripts/vue_shared/directives/safe_html.js
@@ -19,7 +19,12 @@ const transform = (el, binding) => {
}
};
+const clear = (el) => {
+ el.textContent = '';
+};
+
export default {
bind: transform,
update: transform,
+ unbind: clear,
};