Skip to content

[AutoComplete] Doesn't selects option on click #3566

@w01fgang

Description

@w01fgang

Problem Description

Click with mouse doesn't select option in dropdown menu, the menu closes before filling the field.
I use touchpad on Mackbook, so the tap works well, but the click doesn't.
On documentation site, in v0.15.0-alpha.1, the problem exists.

Possible solution

In auto-complete.js I was found the problem in handleBlur function:

this.timerBlurCloseId = setTimeout(() => {
        this.close();
      }, 0);  // when I change from 0 to 300, click works well

Versions

  • Material-UI: v0.15.0-alpha.1
  • React: 0.14.7
  • Browser: Chrome 48.0.2564.116 (64-bit), Safari 9.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: autocompleteChanges related to the autocomplete. This includes ComboBox.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions