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] el-select中, 无法回显value为空的option的label #16857

Open
anmingan opened this issue May 14, 2024 · 1 comment
Open

Comments

@anmingan
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.4.15
  • Element Plus Version: 2.3.10
  • Browser / OS: Chrome 123.0.6312.106
  • Build Tool: Webpack

Reproduction

Related Component

  • el-select

Reproduction Link

Element Plus Playground

Steps to reproduce

空的el-select中, 无法回显value为空的option的label

What is Expected?

能回显value为空的option

What is actually happening?

呈现为未选择的状态

Additional comments

(empty)

@tinglinzh
Copy link

tinglinzh commented May 14, 2024

升级element-plus为2.7.0版本以上,配置属性:empty-values="[null, undefined]"

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

No branches or pull requests

2 participants