Reproduction link

Steps to reproduce
- Put a Select inside a FormItem
- Make FormItem required
What is expected?
aria-required should not be added to a div tag at the root of Select. It should be added to the input among its children.
What is actually happening?
aria-required is being added to a div tag. It is likely that other aria-* attributes passed to Select will also just be added to the root element in the Select, instead of the input element.
| Environment |
Info |
| antd |
5.11.3 |
| React |
18.2.0 |
| System |
Windows 10 |
| Browser |
Firefox 119 |
Reproduction link
Steps to reproduce
What is expected?
aria-required should not be added to a div tag at the root of Select. It should be added to the input among its children.
What is actually happening?
aria-required is being added to a div tag. It is likely that other aria-* attributes passed to Select will also just be added to the root element in the Select, instead of the input element.