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.foundation = new MDCSelectFoundation(
Object.assign({
// common methods
addClass: className => this.$set(this.classes, className, true),
removeClass: className => this.$delete(this.classes, className),
hasClass: className => Boolean(this.classes[className]),
setRippleCenter: normalizedX =>
this.$refs.lineRippleEl &&
this.$refs.lineRippleEl.setRippleCenter(normalizedX),
activateBottomLine: () => {
if (this.$refs.lineRippleEl) {
this.$refs.lineRippleEl.foundation.activate();
}
},
deactivateBottomLine: () => {
if (this.$refs.lineRippleEl) {
this.$refs.lineRippleEl.foundation.deactivate();
mounted() {
const {
SELECTED_ITEM_SELECTOR,
SELECT_ANCHOR_SELECTOR,
VALUE_ATTR,
} = MDCSelectFoundation.strings;
this.menuSetup_();
this.foundation = new MDCSelectFoundation(
Object.assign({
// common methods
addClass: className => this.$set(this.classes, className, true),
removeClass: className => this.$delete(this.classes, className),
hasClass: className => Boolean(this.classes[className]),
setRippleCenter: normalizedX =>
this.$refs.lineRippleEl &&
this.$refs.lineRippleEl.setRippleCenter(normalizedX),
activateBottomLine: () => {
if (this.$refs.lineRippleEl) {
this.$refs.lineRippleEl.foundation_.activate();
}
},
deactivateBottomLine: () => {
if (this.$refs.lineRippleEl) {