mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
use generic for query selector
This commit is contained in:
@@ -441,7 +441,7 @@ export class PickerColumn implements ComponentInterface {
|
||||
get activeItem() {
|
||||
const { value } = this;
|
||||
const options = Array.from(
|
||||
this.el.querySelectorAll('ion-picker-column-option') as NodeListOf<HTMLIonPickerColumnOptionElement>
|
||||
this.el.querySelectorAll<HTMLIonPickerColumnOptionElement>('ion-picker-column-option')
|
||||
);
|
||||
return options.find((option: HTMLIonPickerColumnOptionElement) => {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user