ant-design / ant-design/pro-components
🐛[BUG] ProFormRadio.Group的className、rootClassName、style等属性不生效
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🐛 bug 描述
ProFormRadio.Group的className、rootClassName、style等属性不生效
### 📷 复现步骤
给这个React元素设置className和rootClassName
```jsx
```
然后用 document.querySelector 方法获取DOM节点
```javascript
document.querySelector('.aaa')
document.querySelector('.bbb')
```
结果是返回 null
### 🏞 期望结果
返回DOM节点
### 💻 复现代码
### © 版本信息
- ProComponents 版本: 2.7.1
- umi 版本
- 浏览器环境: Chrome
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start at the ProFormRadio.Group entry point and reproduce the supplied JSX example in a Chrome environment. Check whether document.querySelector('.aaa') and document.querySelector('.bbb') find the rendered nodes, and consider the work complete when the provided className, rootClassName, style, and id props are reflected as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100