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 f154e03 commit 9164c37Copy full SHA for 9164c37
src/lib/sticky-header/sticky-header-dir.ts
@@ -210,6 +210,10 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
210
if (supportList.length === 0) {
211
this.isStickyPositionSupported = false;
212
} else {
213
+ // Only need supportList[0], Because supportList contains all the prefix
214
+ // that can make sticky positioning work in the current browser.
215
+ // We only need to get one prefix and make position: prefix + 'sticky',
216
+ // then sticky position will work.
217
let prefix: string = supportList[0];
218
219
this.element.style.top = '0px';
0 commit comments