mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
chore(): update to ionic-rules/strict
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { Component, Listen, Prop } from '@stencil/core';
|
||||
|
||||
import { Mode, SelectPopoverOption } from '../../interface';
|
||||
import { createThemedClasses } from '../../utils/theme';
|
||||
|
||||
|
||||
@Component({
|
||||
tag: 'ion-select-popover',
|
||||
styleUrl: 'select-popover.scss'
|
||||
@ -26,7 +26,9 @@ export class SelectPopover {
|
||||
@Listen('ionSelect')
|
||||
onSelect(ev: any) {
|
||||
const option = this.options.find(o => o.value === ev.target.value);
|
||||
option && option.handler && option.handler();
|
||||
if (option && option.handler) {
|
||||
option.handler();
|
||||
}
|
||||
}
|
||||
|
||||
hostData() {
|
||||
@ -65,5 +67,3 @@ export class SelectPopover {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user