We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0163b38 commit c24b179Copy full SHA for c24b179
src/cdk/table/sticky-styler.ts
@@ -329,6 +329,10 @@ export class StickyStyler {
329
* sticky position if there are no more directions.
330
*/
331
_removeStickyStyle(element: HTMLElement, stickyDirections: StickyDirection[]) {
332
+ if (!element.classList.contains(this._stickCellCss)) {
333
+ return;
334
+ }
335
+
336
for (const dir of stickyDirections) {
337
element.style[dir] = '';
338
element.classList.remove(this._borderCellCss[dir]);
0 commit comments