Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected makeElementVisible(element: HTMLElement): void {
_closest(this.elementRef.nativeElement!, _CELL_SELECTOR)!
.classList.add(MAT_ROW_HOVER_CELL_CLASS);
if (this.services.directionality.value === 'rtl') {
element.classList.add(MAT_ROW_HOVER_RTL_CLASS);
} else {
element.classList.remove(MAT_ROW_HOVER_RTL_CLASS);
}
element.classList.remove(MAT_ROW_HOVER_ANIMATE_CLASS);
this.services.ngZone.runOutsideAngular(() => {
setTimeout(() => {
element.classList.add(MAT_ROW_HOVER_ANIMATE_CLASS);
});
});
}
}