mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
perf(angular): skip zone
This commit is contained in:
@ -2,6 +2,7 @@ import { Component, ComponentInterface, Listen, Prop, h } from '@stencil/core';
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import { SelectPopoverOption } from '../../interface';
|
||||
import { safeCall } from '../../utils/overlays';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
@ -28,8 +29,8 @@ export class SelectPopover implements ComponentInterface {
|
||||
@Listen('ionSelect')
|
||||
onSelect(ev: any) {
|
||||
const option = this.options.find(o => o.value === ev.target.value);
|
||||
if (option && option.handler) {
|
||||
option.handler();
|
||||
if (option) {
|
||||
safeCall(option.handler);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user