We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.7.3
https://stackblitz.com/edit/react-fq7yh3?file=src%2Fdemo.jsx
Checkbox.Group 值受控时,回调的结果不正确。
Checkbox.Group
受控的值与要变化的值进行计算。
并未正确受控,现在点击后直接存进回调的值数组中了。
No response
The text was updated successfully, but these errors were encountered:
👋 @moecasts,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
const [v, setV] = useState([1]) <A value=v options=[1, 2, 3] onchange={() => { console.log(v) }}/>
有三个选项
1
fix(checkbox): checked set state is not last
afb854b
#2923
fix(checkbox): checked set state is not last (#2926)
257cfbd
NWYLZW
No branches or pull requests
tdesign-react 版本
1.7.3
重现链接
https://stackblitz.com/edit/react-fq7yh3?file=src%2Fdemo.jsx
重现步骤
Checkbox.Group
值受控时,回调的结果不正确。期望结果
受控的值与要变化的值进行计算。
实际结果
并未正确受控,现在点击后直接存进回调的值数组中了。
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: