Merge remote-tracking branch 'origin/feature-8.0' into sp/sync-next-with-v8

This commit is contained in:
Sean Perkins
2024-03-20 21:05:35 -04:00
292 changed files with 8753 additions and 65287 deletions

View File

@ -97,7 +97,11 @@ export class PickerColumn implements ComponentInterface {
const parentEl = (this.parentEl = this.el.closest('ion-picker') as HTMLIonPickerElement | null);
const visibleCallback = (entries: IntersectionObserverEntry[]) => {
const ev = entries[0];
/**
* Browsers will sometimes group multiple IO events into a single callback.
* As a result, we want to grab the last/most recent event in case there are multiple events.
*/
const ev = entries[entries.length - 1];
if (ev.isIntersecting) {
const { activeItem, el } = this;