chore: sync with main

This commit is contained in:
Liam DeBeasi
2024-03-19 14:24:51 -04:00
75 changed files with 1065 additions and 645 deletions

View File

@ -96,7 +96,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;