Skip to content

[Bug]: Autofocus does not work #35685

@MarvinKlein1508

Description

@MarvinKlein1508

Component

TextInput

Package version

3.0.0-rc.3

@microsoft/fast-element version

2.9.1

Environment

See Stackblitz

Current Behavior

Setting autofocus="true" does not focus the component on page load.

Expected Behavior

I expect the component to be in focus when the page has been loaded

Reproduction

https://stackblitz.com/edit/typescript-9wr7yswq

Steps to reproduce

Load the page

Are you reporting an Accessibility issue?

None

Suggested severity

High - No workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions