Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted () {
this.mdcFormField = MDCFormField.attachTo(this.$el)
// TODO: Better solution to avoid direct children access?!
if (this.$children.length === 1) {
if (this.$children[0]._data.mdcRadio) {
this.mdcFormField.input = this.$children[0]._data.mdcRadio
} else if (this.$children[0]._data.mdcCheckbox) {
this.mdcFormField.input = this.$children[0]._data.mdcCheckbox
}
}
},
beforeDestroy () {