chosen icon indicating copy to clipboard operation
chosen copied to clipboard

Backwards compatibility

Open Sophist-UK opened this issue 9 years ago • 0 comments

I use the first option in a select as a placeholder (with an empty value) e.g.

<select>
    <option value=''>Please select...</option>
    <option value='1'>First option</option>
</select>

When I enable Chosen, then Chosen's default placeholder text is shown instead.

It would be nice to have some backwards compatibility and I would like to propose the following...

If the first option for the select has a null value, then use the label for that option as the placeholder text instead of the default Chosen placeholder text.

What do you think?

Thanks.

Sophist-UK avatar Sep 17 '15 22:09 Sophist-UK