Skip to content

TextArea make AutoFocus attribute work #9063

@Nils-Schiwek

Description

@Nils-Schiwek

Is your feature request related to a problem?

I would like to have focus on a Textbox the moment it is rendered. I usually use the autoFocus attribute for that, but it does not work for the UI5 Textbox.

Describe the solution you'd like

I would like to have an easy way to move focus to the Textbox on render.

Describe alternatives you've considered

It would also be possible to add a reference to the textarea using useRef and utilize that to switch focus through useEffect.

Additional Context

the attribute autoFocus={true} should be working on TextArea like described in https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status
Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions