Skip to content

Dropdown opens then immeditately closes on first focus of single select on touch devices #2171

@coreycummings

Description

@coreycummings

For iPad, The first time I focus on the drop down and click, it opens the list items and then automatically closes, next click it works and every click after that works. To reproduce, I can go to http://harvesthq.github.io/chosen/ and the first example has the issue when you select the drop down for the first time. Use chrome and open developer tools, click the phone icon and select iPad3/4 and refresh page, then select the first chosen example drop down, it closes the drop down on first selection during touchend. If I first focus on the element and then click or touch, then the problem does not occur. It seems like it has something to do with showing the drop down list and focusing on the element that causes it to collapse itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions