Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
Input
Class · 0.95
render
Method · 0.45
scroll-assist-double-click.e2e.ts
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected