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
idux/packages/components/checkbox/src/Checkbox.tsx
Line 132 in 69f94c8
<template> <IxCheckbox :checked.sync="checked" :true-value="1" :false-value="0" @change="handleChange" label="选项" /> </template> <script setup lang="ts"> import { ref } from '@idux/vue2-cdk/vue' const checked = ref(true) const handleChange = (checked: boolean | string | number, oldChecked: boolean | string | number) => { // 期望结果 1, 0 // 实际结果 1, false console.log(checked, oldChecked) } </script>
oldChecked 正常
oldChecked 被强制转为 true 和 false
无
The text was updated successfully, but these errors were encountered:
Components / Checkbox / SRC / CheckBox.tsx # l132)
Oldchecked is normal
Oldchecked is enforced to True and False
Sorry, something went wrong.
同时检查下 Radio ,应该也有这个问题。
fix(comp: checkbox): onChange returned an error oldValue
ff35406
fix IDuxFE#790
fix(comp: checkbox): onChange returned an error oldValue (#792)
2825def
fix #790
liuzaijiang
Successfully merging a pull request may close this issue.
Reproduction link
idux/packages/components/checkbox/src/Checkbox.tsx
Line 132 in 69f94c8
Steps to reproduce
What is expected?
oldChecked 正常
What is actually happening?
oldChecked 被强制转为 true 和 false
Environment Info
The text was updated successfully, but these errors were encountered: