rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

There is no option to get an option by default selected and display on placeholder #98

Open harsh-kukreja opened 4 years ago

harsh-kukreja commented 4 years ago

Whenever we write an option tag with selected that option is selected but there is no option here can anyone suggest? also for the multiple selects

jasonpenny commented 4 years ago

I'm not sure I understand the question exactly, but I think the defaultValue does what you want

https://codesandbox.io/s/optimistic-dan-6izv0?file=/src/App.js image