()
| 516 | */ |
| 517 | @Method() |
| 518 | async getInputElement(): Promise<HTMLInputElement> { |
| 519 | /** |
| 520 | * If this gets called in certain early lifecycle hooks (ex: Vue onMounted), |
| 521 | * nativeInput won't be defined yet with the custom elements build, so wait for it to load in. |
| 522 | */ |
| 523 | if (!this.nativeInput) { |
| 524 | await new Promise((resolve) => componentOnReady(this.el, resolve)); |
| 525 | } |
| 526 | return Promise.resolve(this.nativeInput!); |
| 527 | } |
| 528 | |
| 529 | /** |
| 530 | * Emits an `ionChange` event. |
nothing calls this directly
no test coverage detected