Emit event on input from date selector so parent element can respond

This commit is contained in:
leigh-mil
2019-09-25 15:58:04 -04:00
parent ad86dc33fc
commit c03820e53a
6 changed files with 14 additions and 6 deletions

View File

@@ -195,6 +195,12 @@ export default {
watch: this.watch,
valid: this.isDateValid,
})
this.$emit('date-change', {
value: this.formattedDate,
name: this.name,
valid: this.isDateValid,
})
},
_emitChange: function(name, value, valid) {