@cqa-lib/cqa-ui 1.0.88 → 1.0.89
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.
|
@@ -1904,6 +1904,8 @@ class DynamicSelectFieldComponent {
|
|
|
1904
1904
|
catch { }
|
|
1905
1905
|
this.loadMoreObserver = undefined;
|
|
1906
1906
|
}
|
|
1907
|
+
// Use the sentinel's closest panel as the root to avoid picking a wrong panel
|
|
1908
|
+
const panelRoot = sentinel.closest('.mat-select-panel');
|
|
1907
1909
|
this.loadMoreObserver = new IntersectionObserver((entries) => {
|
|
1908
1910
|
for (const entry of entries) {
|
|
1909
1911
|
if (entry.isIntersecting) {
|
|
@@ -1921,7 +1923,7 @@ class DynamicSelectFieldComponent {
|
|
|
1921
1923
|
}
|
|
1922
1924
|
}
|
|
1923
1925
|
}
|
|
1924
|
-
}, { root:
|
|
1926
|
+
}, { root: panelRoot, threshold: 0.1 });
|
|
1925
1927
|
try {
|
|
1926
1928
|
this.loadMoreObserver.observe(sentinel);
|
|
1927
1929
|
}
|