Skip to content

[Bug]: Field overwrites id of wrapped control #27202

Description

@adamsamec

Library

React Components / v9 (@fluentui/react-components)

System Info

N/A

Are you reporting Accessibility issue?

no

Reproduction

Yet to be provided

Bug Description

Actual Behavior

When a v9 Field component is used to wrap an inner native HTML control or v9 control like Input or Checkbox, and an "id" attribute is set on that inner control, the "id" gets overwritten with a generated "id".

Expected Behavior

The "id" attribute of the inner control should be preserved when wrapped by the Field component.

Logs

No response

Requested priority

Blocking

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

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions