Skip to content

[material-ui] Autocomplete right click triggers openΒ #36075

@sp-reach

Description

@sp-reach

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce πŸ•Ή

Link to live example:
https://mui.com/material-ui/react-autocomplete/

Steps:

  1. Scroll to first Autocomplete example
  2. right click item

Current behavior 😯

Right clicking the component renders the "opened" state of the list.

Expected behavior πŸ€”

Right click doesn't trigger an "onclick" event which opens the list.

Context πŸ”¦

Right clicking is a native browser and OS system, which we shouldn't typically be listening to, especially on a search component.

Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Metadata

Metadata

Assignees

Labels

breaking changeIntroduces changes that are not backward compatible.scope: autocompleteChanges related to the autocomplete. This includes ComboBox.type: bugIt doesn't behave as expected.

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions