@ibragim-dev-org/ui-forge-library 1.4.58 → 1.4.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1027,8 +1027,8 @@ class StableScrollDirective {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
resolveAnchorCandidates() {
|
|
1029
1029
|
const children = Array.from(this.el.children);
|
|
1030
|
-
const
|
|
1031
|
-
return
|
|
1030
|
+
const anchor = children.filter((child) => child.classList.contains('ui-forge-anchor'));
|
|
1031
|
+
return anchor.length ? anchor : children;
|
|
1032
1032
|
}
|
|
1033
1033
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: StableScrollDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1034
1034
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: StableScrollDirective, isStandalone: true, selector: "[stableScroll]", inputs: { $topThreshold: { classPropertyName: "$topThreshold", publicName: "$topThreshold", isSignal: true, isRequired: false, transformFunction: null }, $bottomThreshold: { classPropertyName: "$bottomThreshold", publicName: "$bottomThreshold", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { reachedTop: "reachedTop", reachedBottom: "reachedBottom" }, ngImport: i0 });
|