Display checked boxes after saving draft

This commit is contained in:
Montana 2019-01-03 16:12:40 -05:00
parent b1ee67a804
commit c5007d9edb

View File

@ -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', {