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

How to set default value? #337

Closed
araneta opened this issue Mar 9, 2017 · 1 comment
Closed

How to set default value? #337

araneta opened this issue Mar 9, 2017 · 1 comment

Comments

@araneta
Copy link

araneta commented Mar 9, 2017

Are you reporting a bug?

no

Is it possible to set the default value and default label? here is my render function

return (<Select.Async value={value} valueKey="code" labelKey="name"  onChange={this.onChange}  loadOptions={this.getNationalities2} backspaceRemoves={this.state.backspaceRemoves} />)
@moroshko
Copy link
Owner

moroshko commented Mar 9, 2017

Are you sure you posted the question in the right repo?
This repo is for Autosuggest, I', not sure what Select.Async is.
The default value in Autosuggest is simply the initial value of the value prop you pass to it.

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