Provide a general summary of the issue here
When triggering a popover using DialogTrigger as in the examples in the Popover documentation, the trigger sets an id for aria-controls. However, this id is not set on the popover, so aria-controls points to an invalid id.
🤔 Expected Behavior?
aria-controls of the trigger should point to the popover dialog when the dialog is open (or at least should not point to an invalid id).
😯 Current Behavior
aria-controls is an id that is not found anywhere else in the DOM.
💁 Possible Solution
It seems like the id prop was forgotten in the popover context in this case?
🔦 Context
No response
🖥️ Steps to Reproduce
This can be reproduced in the react-aria docs themselves: https://react-aria.adobe.com/Popover
- Click the trigger to open the popover
- Inspect the trigger - note that it has
aria-controls set
- Inspect the popover dialog - note that no id is set
- Search the rest of the DOM - the id pointed at by
aria-controls does not appear anywhere else
Version
react-aria-components version 1.15.0, but this also happens in the version used for the docs which I assume is the latest
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
MacOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
Provide a general summary of the issue here
When triggering a popover using
DialogTriggeras in the examples in thePopoverdocumentation, the trigger sets an id foraria-controls. However, this id is not set on the popover, soaria-controlspoints to an invalid id.🤔 Expected Behavior?
aria-controlsof the trigger should point to the popover dialog when the dialog is open (or at least should not point to an invalid id).😯 Current Behavior
aria-controlsis an id that is not found anywhere else in the DOM.💁 Possible Solution
It seems like the
idprop was forgotten in the popover context in this case?🔦 Context
No response
🖥️ Steps to Reproduce
This can be reproduced in the react-aria docs themselves: https://react-aria.adobe.com/Popover
aria-controlssetaria-controlsdoes not appear anywhere elseVersion
react-aria-components version 1.15.0, but this also happens in the version used for the docs which I assume is the latest
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
MacOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response