From c5007d9edbadb721bfcb59f236e14e35fdd8c74b Mon Sep 17 00:00:00 2001 From: Montana Date: Thu, 3 Jan 2019 16:12:40 -0500 Subject: [PATCH] Display checked boxes after saving draft --- js/components/multi_checkbox_input.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/components/multi_checkbox_input.js b/js/components/multi_checkbox_input.js index 9f821707..da81f31c 100644 --- a/js/components/multi_checkbox_input.js +++ b/js/components/multi_checkbox_input.js @@ -34,6 +34,14 @@ export default { } }, + mounted: function () { + for (let child of this.$el.firstChild.lastElementChild.children) { + if (this.initialValue.includes(child.firstChild.value)) { + child.firstChild.checked = true + } + } + }, + methods: { onInput: function (e) { this.$root.$emit('field-change', {