Skip to content

Placeholder overlaps first option when showAllValues: true #259

Open
@hannalaakso

Description

@hannalaakso

Screenshot

autocomplete

Steps to replicate:

  1. Set up a progressively-enhanced select with a null option and a non-null option (see below), defaultValue: '', placeholder: 'PH', showAllValues: true:
<select name="last-location" id="last-location">
    <option value=""></option>
    <option value="value">Abu Dhabi</option>
</select>
  1. Click on the input. The placeholder text and the first option now overlap.

Expected behaviour:

Placeholder text should disappear when user clicks on the field.

Note: this only happens when showAllValues: true.

(Placeholders are generally not recommended so I think this might be lower priority)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions