diff --git a/js/components/checkbox_input.js b/js/components/checkbox_input.js index db542fef..9236caf8 100644 --- a/js/components/checkbox_input.js +++ b/js/components/checkbox_input.js @@ -19,11 +19,20 @@ export default { } }, + created: function() { + emitEvent('field-mount', this, { + optional: this.optional, + name: this.name, + valid: this.isChecked, + }) + }, + methods: { onInput: function(e) { emitEvent('field-change', this, { value: e.target.checked, name: this.name, + valid: this.isChecked, }) }, },