Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public componentDidMount() {
super.componentDidMount();
if (this.control) {
this.MDComponent = new MDCSelect(this.control);
this.MDComponent.listen('MDCSelect:change', this.onChanged);
}
this.updateSelection();
}
componentDidMount() {
if (!this.props.basic) {
this.MDComponent = new MDCSelect(this.control);
this.MDComponent.listen("MDCSelect:change", this._changed);
this.updateSelection();
}
}
componentWillUnmount() {