Skip to content

[Dropdown] Search selection selects first item on close #1742

@larsbo

Description

@larsbo

Bug Report

If you open a searchable dropdown and don't choose any item but closing the dropdown (clicking outside / clicking the dropdown arrow / press ESC) the first item of the results will be selected.

Steps to reproduce

  1. Go to https://fomantic-ui.com/modules/dropdown.html#search-selection
  2. Click on the selection dropdown with placeholder "Select Country"
  3. Don't select an item
  4. Close the dropdown

Expected result

No selected value.

Actual result

Afghanistan :-/

Testcase

Screenshot (if possible)

Version

2.x.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang/javascriptAnything involving JavaScripttype/usageAny support issues asking for help

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions