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

Antd placeholder no rendering. #568

Closed
danyhiol opened this issue Aug 2, 2019 · 1 comment
Closed

Antd placeholder no rendering. #568

danyhiol opened this issue Aug 2, 2019 · 1 comment
Assignees
Labels
Type: Bug Bug reports and their fixes

Comments

@danyhiol
Copy link

danyhiol commented Aug 2, 2019

When using SelectField import SelectField from 'uniforms-antd/SelectField' with simpleschema2 import SimpleSchema from 'simpl-schema' placeholder does not render.

test: {
    type:  Array
    minCount: 1,
    allowedValues: ["one", "two", "tree", "four"],
    uniforms: {
        placeholder: "some place holder",
        extra: "some extra",
    }
},
'test.$': String,

or

<SelectField 
    name="test"
    showSearch
    allowClear
    optionFilterProp="children"
    placeholder: "some place holder",
    extra: "some extra",
    options=["one", "two", "tree", "four"]
/>

This may reference to SelectField

@radekmie radekmie self-assigned this Aug 4, 2019
@radekmie radekmie added the Type: Bug Bug reports and their fixes label Aug 4, 2019
@radekmie
Copy link
Contributor

radekmie commented Aug 4, 2019

Hi @danyhiol. Yep, it's a bug. It should use undefined instead of an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug reports and their fixes
Projects
Archived in project
Development

No branches or pull requests

2 participants