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

🐛 [Bug]: Select 下拉选择框 文字回显错误 #311

Closed
opxdo opened this issue Apr 25, 2023 · 1 comment · Fixed by #322
Closed

🐛 [Bug]: Select 下拉选择框 文字回显错误 #311

opxdo opened this issue Apr 25, 2023 · 1 comment · Fixed by #322

Comments

@opxdo
Copy link

opxdo commented Apr 25, 2023

Version

[email protected]

Angular Version

15.2.8

Link to minimal reproduction

官网demo
https://devui.design/components/zh-cn/select/demo#object-filter

使用对象数组,通过filterKey配置对象显示字段。

Step to reproduce

当 option 的value为 0, false, ""空字符串 时,文字回显不正确。应该显示为 "Option 1", 文本框显示成了 value 值

options = [
    {
      name: 'Option 1',
//      value: 4,
      value: 0, 
    },
    {
      name: 'Option 2',
      value: 8,
    },
    {
      name: 'Option 3',
      value: 16,
    },
    {
      name: 'Option 4',
      value: 32,
    },
  ];

select

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

@Simplelegant
Copy link
Collaborator

问题已收到,我们近期修复

@Simplelegant Simplelegant moved this to 🆕 New in 2023 Idea Square May 10, 2023
@Simplelegant Simplelegant moved this from 🆕 New to 🏗 In progress in 2023 Idea Square Jun 9, 2023
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in 2023 Idea Square Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants