Skip to content

Commit ac07aef

Browse files
committed
_unstuckElement -> _unstickElement
1 parent 2791cca commit ac07aef

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
@@ -166,7 +166,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
166166
// the resized window. So we need to unstuck it then re-stick it.
167167
// unstuck() can set 'isStuck' to FALSE. Then _stickElement() can work.
168168
if (this.isStuck) {
169-
this._unstuckElement();
169+
this._unstickElement();
170170
this._stickElement();
171171
}
172172
}
@@ -236,7 +236,7 @@ export class CdkStickyHeader implements OnDestroy, AfterViewInit {
236236
* This should be called when the element reaches the bottom of its cdkStickyRegion so that it
237237
* smoothly scrolls out of view as the next sticky-header moves in.
238238
*/
239-
private _unstuckElement(): void {
239+
private _unstickElement(): void {
240240
this.isStuck = false;
241241

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

0 commit comments

Comments
 (0)