Skip to content

Commit 51b759f

Browse files
committed
Fix
1 parent 00f8084 commit 51b759f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/table/sticky-styler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class StickyStyler {
184184
// If the element no longer has any more sticky directions, remove sticky positioning and
185185
// the sticky CSS class.
186186
const hasDirection = STICKY_DIRECTIONS.some(dir =>
187-
stickyDirections.indexOf(dir) !== -1 && !!element.style[dir]);
187+
stickyDirections.indexOf(dir) === -1 && !!element.style[dir]);
188188
if (hasDirection) {
189189
element.style.zIndex = this._getCalculatedZIndex(element);
190190
} else {

0 commit comments

Comments
 (0)