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] [select] select option with name prop doesn't work #16642

Closed
g8up opened this issue Apr 24, 2024 · 2 comments
Closed

[Component] [select] select option with name prop doesn't work #16642

g8up opened this issue Apr 24, 2024 · 2 comments

Comments

@g8up
Copy link

g8up commented Apr 24, 2024

Bug Type: Component

Environment

  • Vue Version: 3.4.24
  • Element Plus Version: 2.7.1
  • Browser / OS: chrome
  • Build Tool: Vite

Reproduction

Related Component

  • el-select

Reproduction Link

Element Plus Playground

Steps to reproduce

切换不同的option

What is Expected?

option 可改变

What is actually happening?

option 只能选中末尾选项。

Additional comments

像是 option 的item 不能有name做属性。

@btea
Copy link
Collaborator

btea commented Apr 24, 2024

value 应该绑定是 item.id例子

如果你确定 value 要绑定成对象,那么需要设置value-keyid例子

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.

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

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

No branches or pull requests

3 participants