-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: autocompleteChanges related to the autocomplete. This includes ComboBox.Changes related to the autocomplete. This includes ComboBox.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
When the ArrowDown↓ is pressed at IME composing state, the second below option is highlighted.
(This is not only for ArrowDown↓ key. All of the below switch-case's each key has this problem)
https://github.com/mui-org/material-ui/blob/5c9c97675f3e7d3978e664520f3fbbe595c78eee/packages/material-ui/src/useAutocomplete/useAutocomplete.js#L662-L771
Expected Behavior 🤔
When the ArrowDown↓ is pressed at IME composing state, the first below option should highlighted.
Steps to Reproduce 🕹
Steps:
- See https://codesandbox.io/s/material-demo-forked-bdu70
- Make IME on with character '가'
- Hit ArrowDown↓
- The second below option is highlighted
Context 🔦
This Problem is related to #19435.
To expected behavior, I think below whole swich-case statements should place under the if statement of
if (event.which !== 229)Your Environment 🌎
| Tech | Version |
|---|---|
| Material-UI | v4.11.0 |
| Material-UI Lab | v4.0.0-alpha.56 |
| React | v16.13.1 |
| Browser | macOS, Chrome/85.0.4183.102 |
oliviertassinari
Metadata
Metadata
Assignees
Labels
ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: autocompleteChanges related to the autocomplete. This includes ComboBox.Changes related to the autocomplete. This includes ComboBox.type: bugIt doesn't behave as expected.It doesn't behave as expected.
