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-button] radio-group-button的值绑定问题 #16689

Open
toviac opened this issue Apr 28, 2024 · 2 comments · May be fixed by #16692
Open

[Component] [radio-button] radio-group-button的值绑定问题 #16689

toviac opened this issue Apr 28, 2024 · 2 comments · May be fixed by #16692

Comments

@toviac
Copy link

toviac commented Apr 28, 2024

Bug Type: Component

Environment

  • Vue Version: 3.4.25
  • Element Plus Version: 2.7.2
  • Browser / OS: Chrome/124.0.0.0 Macos13.3.1
  • Build Tool: Vite

Reproduction

Related Component

  • el-radio-button

Reproduction Link

Element Plus Playground

Steps to reproduce

  1. 默认绑定NewYork
  2. 点击radio-button的Washington, radio-button被清空了没有选中值
  3. 点击radio-group的Washington, radio-group没有变化

What is Expected?

由model-value控制绑定值, 点击radio-button的Washington时选中的依然是NewYork

What is actually happening?

radio-button的值被清空

Additional comments

(empty)

QQ20240428-102842-HD.mp4
@makedopamine
Copy link
Contributor

为什么用model-value而不是用v-model做双向绑定呢?

@toviac
Copy link
Author

toviac commented May 6, 2024

为什么用model-value而不是用v-model做双向绑定呢?

比如...点击后会触发请求, 成功后才高亮?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants