Skip to content
This repository was archived by the owner on Apr 23, 2018. It is now read-only.
This repository was archived by the owner on Apr 23, 2018. It is now read-only.

Backwards compatibility #49

@Sophist-UK

Description

@Sophist-UK

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions