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

Allow deselection of optional SelectField #120

Merged
merged 8 commits into from
Oct 28, 2016
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ const renderSelect = props =>
ref={props.inputRef}
value={props.value}
>
{!!props.placeholder && (
<option value="" disabled hidden>
{props.placeholder}
{(!!props.placeholder || !props.required) && (
<option value="" disabled={props.required} hidden={props.required}>
{props.placeholder ? props.placeholder : props.label}
</option>
)}

Expand Down