Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox 设置value无效 未勾选 #3162

Open
Skye-wyb opened this issue Oct 25, 2024 · 5 comments
Open

Checkbox 设置value无效 未勾选 #3162

Skye-wyb opened this issue Oct 25, 2024 · 5 comments
Labels
example Something about example

Comments

@Skye-wyb
Copy link

tdesign-react 版本

1.9.3

重现链接

No response

重现步骤

<Checkbox.Group
value={['1', '2']}
options={[{ value: '1', label: '1' }]}
// onChange={(value) => {
// dispatch({
// type: 'levelIds',
// payload: {
// levelIds: value,
// },
// });
// setSelectValues(value);
// }}
/>

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @Skye-wyb,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@Skye-wyb
Copy link
Author

image

@Skye-wyb Skye-wyb changed the title [组件名称] 描述问题的标题 Checkbox 设置value无效 未勾选 Oct 25, 2024
@HaixingOoO
Copy link
Collaborator

您好,测试你写的代码没发现问题,可以的话给个在线CodeSandBox

@HaixingOoO HaixingOoO added the example Something about example label Oct 27, 2024
@uyarn
Copy link
Collaborator

uyarn commented Oct 31, 2024

看issue描述 是用了value 又没在onChange里处理

@HaixingOoO
Copy link
Collaborator

看issue描述 是用了value 又没在onChange里处理

不是的,他说的就是checkbox.Group 初始设置了value,但没勾选的问题,不是点击checkbox不勾选

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example Something about example
Projects
None yet
Development

No branches or pull requests

3 participants