Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
super.componentDidMount();
this.label = this.root.ref && this.root.ref.querySelector('label');
if (this.label) {
this.label.style.transitionDuration = '0s';
this.root.addClass(
MDCNotchedOutlineFoundation.cssClasses.OUTLINE_UPGRADED
);
requestAnimationFrame(() => {
this.label && (this.label.style.transitionDuration = '');
});
} else {
this.root.addClass(MDCNotchedOutlineFoundation.cssClasses.NO_LABEL);
}
}
componentDidMount() {
super.componentDidMount();
this.label = this.root.ref && this.root.ref.querySelector('label');
if (this.label) {
this.label.style.transitionDuration = '0s';
this.root.addClass(
MDCNotchedOutlineFoundation.cssClasses.OUTLINE_UPGRADED
);
requestAnimationFrame(() => {
this.label && (this.label.style.transitionDuration = '');
});
} else {
this.root.addClass(MDCNotchedOutlineFoundation.cssClasses.NO_LABEL);
}
}