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

[Component] [radio] el-radio id无效问题 #8449

Closed
anjisZhou opened this issue Jun 24, 2022 · 4 comments · Fixed by #8476
Closed

[Component] [radio] el-radio id无效问题 #8449

anjisZhou opened this issue Jun 24, 2022 · 4 comments · Fixed by #8476

Comments

@anjisZhou
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.2.37
  • Element Plus Version: 2.2.6
  • Browser / OS: chrome
  • Build Tool: Vue CLI

Reproduction

Related Component

  • el-radio

Reproduction Link

Element Plus Playground

Steps to reproduce

设置el-radio组件的id,当使用label for属性绑定id时,点击label el-radio无反应。

What is Expected?

el-radio有反应

What is actually happening?

el-radio无反应

Additional comments

(empty)

@chenxch
Copy link
Member

chenxch commented Jul 6, 2022

@anjisZhou 建议先不要使用id,自己建立点击事件去进行需要的联动。

@anjisZhou
Copy link
Author

@anjisZhou 建议先不要使用id,自己建立点击事件去进行需要的联动。
好的,我现在是这样处理哒,刚刚Element Plus Playground这里面看点击label可以和input进行联动了,这是已经优化了吗

@chenxch
Copy link
Member

chenxch commented Jul 6, 2022

目前是做了一个版本的修复,但是在后期检查中这个pr存在争议,可能会回退,我是担心这个可能会给你造成困恼,特地来和你说一下哈。

@github-actions
Copy link

github-actions bot commented Aug 5, 2022

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.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Aug 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants