Skip to content

[SelectField] shows an empty selection after immediate click after picking one of the menuitems #5066

Description

@yavalvas

Problem description

This bug can be reproduced with version on this page http://www.material-ui.com/#/components/select-field
Immediate click on SelectField after picking one of menuitems could lead to empty selection, but state changed by onChange handler won't be empty in this case.

Steps to reproduce

It's necessary to try to click on SelectField immediately after selection of one of the menuitems inside of it, it will lead to empty selection, but in this case state of a component isn't empty. It's a little bit tricky to reproduce, this bug looks inconsistent and probably appears due to the animation of collapsing of SelectField

Versions

  • Material-UI: 0.15.4
  • React: 15.3.0
  • Browser: Chrome 52.0.2743.116 m (64-bit)

Description

On the following pictures there SelectField which can't have empty value inside of it became empty after actions described above.

Images & references

could_not_be_empty
empty_value_error

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: selectChanges related to the select.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions