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 the default selected value while very first time loading #1229

Closed
rahulkag opened this issue Sep 20, 2016 · 2 comments
Closed

How to set the default selected value while very first time loading #1229

rahulkag opened this issue Sep 20, 2016 · 2 comments

Comments

@rahulkag
Copy link

rahulkag commented Sep 20, 2016

<Select defaultValue ="Category" />

Some thing like above code so that we can set he default selected value into select box.

@Cein-Markey
Copy link

Cein-Markey commented Sep 20, 2016

Have you tried <Select value="Category" />?

Edit: See API documentation
https://github.com/JedWatson/react-select#further-options

@rahulkag
Copy link
Author

Thanks Cein-Markey.

I was trying this but some thing went wrong into my code only so that I was assuming some like 'defaultValue'.

But finally I have fix this.

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