Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cdk/scrolling): Prevents NaN being returned as firstVisibleIndex. (…
…#21505) When firstVisibleIndex divides by zero, which can happen when the page is built and loaded dynamically; the NaN result will be used in other calculations. This then throws off things like the `newRange.start` value also returning NaN, breaking the plugin. (cherry picked from commit 390afca)
- Loading branch information