MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / setFocus

Method setFocus

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

Source from the content-addressed store, hash-verified

506 */
507 @Method()
508 async setFocus() {
509 if (this.nativeInput) {
510 this.nativeInput.focus();
511 }
512 }
513
514 /**
515 * Returns the native `<input>` element used under the hood.

Callers 3

InputClass · 0.95
renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected