Skip to content

The default value of the a-select component must be undefined to trigger the placeholder attribute display #4117

@sdutwsl

Description

@sdutwsl
  • [ √] I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.4

Environment

Windows 10 ,Chrome 90.0, Vue 2

Reproduction link

Edit on CodeSandbox

Steps to reproduce

参考codesandbox的链接

What is expected?

当select的v-model为null或者空字符串的时候,也应当显示placeholder,或者单独一个属性控制placeholder是否显示

What is actually happening?

当且仅当v-model为undefined时,才会显示placeholder,众所周知,大家都不想在代码中出现undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions