MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / getInputElement

Method getInputElement

core/src/components/input/input.tsx:518–527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

componentOnReadyFunction · 0.90

Tested by

no test coverage detected