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

Select下拉组件的placeHolder不显示 #536

Closed
wangxinyu666666 opened this issue Feb 25, 2020 · 1 comment
Closed

Select下拉组件的placeHolder不显示 #536

wangxinyu666666 opened this issue Feb 25, 2020 · 1 comment
Assignees

Comments

@wangxinyu666666
Copy link

描述这个问题:

1、组件相关代码

代码粘贴区域:
<Select
placeholder={item.placeHolder}
onChange={(value, options) => this.handleSelect(value, options, code, index)}
defaultValue={item.defaultValue}
value={record[item.code]}
multiple={item.mutiFlag}
disabled={data.length ? false : true}
allowClear

<Select
placeholder={item.placeHolder}
{
...getFieldProps(item.code, {
onChange: (value, options) => this.formHandleSelect(value, options, code),
validateTrigger: 'onChange',
initialValue: formData[item.code] || i_default,
rules: rules,
})
}
data={data}
disabled={data.length ? false : true}
multiple={item.mutiFlag}
allowClear
/>

2、报错信息

image

image
这两个图中defaultValue是null的时候,下拉框不能正常显示placeHolder,第一张图中的value是空字符串。

@yangchch6 yangchch6 self-assigned this Jul 13, 2020
@yangchch6
Copy link
Contributor

  • bee-select@2.0.26
    • [Fixbug] 修复 placeholder 显示问题

稍后发布 tinper-bee

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