fn
focus
v0.0.5testedFocuses an element without scrolling. Optionally calls select on input elements.
Signature
ts
export function focus(element?: FocusableTarget | null,{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
element? | FocusableTarget | null | undefined | — |
{ select = false }? | { select?: boolean | undefined; } | — |