Skip to content

Commit 364772a

Browse files
committed
_unstuckElement -> _unstickElement
1 parent dbed211 commit 364772a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/sticky-header/sticky-header.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
165165
// the resized window. So we need to unstuck it then re-stick it.
166166
// unstuck() can set 'isStuck' to FALSE. Then _stickElement() can work.
167167
if (this.isStuck) {
168-
this._unstuckElement();
168+
this._unstickElement();
169169
this._stickElement();
170170
}
171171
}
@@ -235,7 +235,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
235235
* This should be called when the element reaches the bottom of its cdkStickyRegion so that it
236236
* smoothly scrolls out of view as the next sticky-header moves in.
237237
*/
238-
private _unstuckElement(): void {
238+
private _unstickElement(): void {
239239
this.isStuck = false;
240240

241241
if (!this.stickyParent) {
@@ -271,7 +271,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
271271
|| currentPosition >= this._stickyRegionBottomThreshold) {
272272
this._resetElementStyles();
273273
if (currentPosition >= this._stickyRegionBottomThreshold) {
274-
this._unstuckElement();
274+
this._unstickElement();
275275
}
276276
this.isStuck = false; // stick when the element is within the sticky region
277277
} else if ( this.isStuck === false &&

0 commit comments

Comments
 (0)