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

a-radio-group组件绑定了字段,其事件就会执行两次 #1280

Closed
1 task done
imic07 opened this issue Oct 15, 2019 · 4 comments
Closed
1 task done

a-radio-group组件绑定了字段,其事件就会执行两次 #1280

imic07 opened this issue Oct 15, 2019 · 4 comments

Comments

@imic07
Copy link

imic07 commented Oct 15, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.0

Environment

win10/chrome latest/vue 1.4.0

Reproduction link

Edit on CodeSandbox

Steps to reproduce

升级到1.4.0后, a-radio-group组件如果绑定了字段,那么其事件就会执行两次(使用v-model或者form表单绑定)

<a-radio-group @change="onChange" v-model="tttt" defaultValue="a">
    <a-radio-button value="a">Hangzhou</a-radio-button>
    <a-radio-button value="b" disabled>Shanghai</a-radio-button>
    <a-radio-button value="c">Beijing</a-radio-button>
    <a-radio-button value="d">Chengdu</a-radio-button>
</a-radio-group>

onChange(e) {
    console.log(`checked = ${e.target.value}`);
},

What is expected?

点击后,change只执行一次

What is actually happening?

执行了两次

@imic07
Copy link
Author

imic07 commented Oct 16, 2019

@tangjinzhou 另外。进度条的strokeWidth不起作用,1.3.17正常。重现步骤参看上面的沙盒链接
image

@tangjinzhou
Copy link
Member

@imic07 不同问题,分开提issue吧

@imic07
Copy link
Author

imic07 commented Oct 18, 2019

@tangjinzhou ver 1.4.1 change还是执行了2次, 你再测试下呢

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants