Skip to content

[SelectField] Component re-render breaks keyboard navigation #6038

Description

@Floriferous

When using the keyboard to navigate the SelectField dropdown, for example:

  • Using tab to scroll through possible MenuItems
  • Typing to alphabetically get the first matching MenuItem

if a parent component triggers a re-render during this navigation, the "focused" MenuItem automatically reverts to the previously selected value.

Proper use of shouldComponentUpdate solves this, however i'm not sure this should be necessary.

  • Material-UI: 0.16.6
  • React: 15.4.1
  • Browser: Safari & Chrome

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