mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
chore: sync with main
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user