Skip to content

react-aria useDatePicker has two elements with the same id #3969

Closed
@JennyHumphries

Description

@JennyHumphries

Expected Behaviour

react-aria useDatePicker should be compliant with accessibility rules

Actual Behaviour

Following the example in the docs here: https://react-spectrum.adobe.com/react-aria/useDatePicker.html
Both groupProps and fieldProps have the same id which results in elements with duplicate ids.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

In the example docs here: https://react-spectrum.adobe.com/react-aria/useDatePicker.html
If you inspect the example date picker you can see the duplicate ids here:

image

Platform and Version

react-aria ^3.21.0

Current workaround

Manually set the id on the groupProps to something different

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions