Skip to content

TextComponent.autoSelect method

TextComponent › autoSelect

Unofficial

Selects the input's text when it receives focus.

Signature:

autoSelect(force?: boolean | undefined): this

Parameters:

Parameter Type Description
force? boolean | undefined Whether to enable select-on-focus even without a physical keyboard.

Returns: thisThe text component.