Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted () {
// code here executes once the component is rendered
autoInit(this.$el) // reapply MDCRipple to all mdc-list-item
},
methods: {
attached() {
const hasMdcElements = this.config.mdcClasses.some(cls => {
return this.element.classList.contains(cls);
});
if (!hasMdcElements) return;
autoInit(this.element.parentNode, () => { });
}
}
attached() {
const hasMdcElements = this.config.mdcClasses.some(cls => {
return this.element.classList.contains(cls);
});
if (!hasMdcElements) return;
autoInit(this.element.parentNode, () => {});
}
}) || _class) || _class);