Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
this.MDComponent = new MDCDialog(this.control);
this.MDComponent.listen('MDCDialog:accept', this._onAccept);
this.MDComponent.listen('MDCDialog:cancel', this._onCancel);
}
componentWillUnmount() {
public componentDidMount() {
super.componentDidMount();
if (this.control) {
this.MDComponent = new MDCDialog(this.control);
this.MDComponent.listen('MDCDialog:accept', this.onAccept);
this.MDComponent.listen('MDCDialog:cancel', this.onCancel);
}
}
componentDidMount() {
this.MDComponent = new MDCDialog(this.control);
}
componentWillUnmount() {