Skip to content

Scrolling on AutoComplete and pressing Enter causes item to be selected #46718

@julian-schwab

Description

@julian-schwab

Steps to reproduce

Steps:

  1. Go to the official docs: https://mui.com/material-ui/react-autocomplete/#combo-box
  2. In mobile mode, enter a search term, e.g. "e" and then scroll by dragging an item vertically
  3. Press enter on the keyboard

Current behavior

The item which was placed under the initial touch point of the scrolling is selected.

Expected behavior

No item is selected (the same behaviour as when no scrolling was done).

Context

No response

Your environment

No response

Search keywords: combo-box,scrolling,autocomplete

Metadata

Metadata

Assignees

Labels

bug 🐛Something doesn't workcomponent: autocompleteThis is the name of the generic UI component, not the React module!

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions