Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Dropdown/select box "selected" attribute isn't acknowledged #16

@bridgeport

Description

@bridgeport

First off, thanks for putting together this script.

Unlike inputs and textareas, if a select box has a predefined/initial selected="selected" option, float-labels doesn't activate for that field.

For example, the following will show "United States" styled as a a grayed out placeholder without any floating label:

<label for="country">Country</label>
<select id="country">
    <option>Country</option>
    <option value="CA">Canada</option>
    <option value="US" selected>United States</option>
</select>

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