chenglou / react-chosen

React wrapper for Chosen jQuery.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Initializing with no default value

pjm17971 opened this issue · comments

Hopefully this is a simple question and I'm missing the obvious.

Is there a way to initialize the component and have the chosen widget not try to select a value? I'd like to use it to select a contact from a list so I need for it not to try and select the first contact. The user should chose that.

Thanks!

Oh actually, I see... there needs to be a <option value=""></option> at the top of the options list for the placeholder to show up. Need more sleep.