Skip to content

Commit 0028a10

Browse files
committed
fix: radio bug
1 parent e76a41f commit 0028a10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/radio/Radio.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ export default {
5454
handleChange (event) {
5555
const targetChecked = event.target.checked
5656
this.$emit('input', targetChecked)
57-
const { name, value, radioGroupContext, stateChecked } = this
57+
const { name, value, radioGroupContext } = this
5858
if ((!hasProp(this, 'checked') && !radioGroupContext) || (radioGroupContext && radioGroupContext.value === undefined)) {
5959
this.stateChecked = targetChecked
6060
}
6161
const target = {
6262
name,
6363
value,
64-
checked: !stateChecked,
64+
checked: targetChecked,
6565
}
6666
if (this.radioGroupContext) {
6767
this.radioGroupContext.handleChange({ target })

0 commit comments

Comments
 (0)