Duplicates
Latest version
Current behavior 😯
When I click into a <Select> (with disablePortal) the dropdown opens, but ArrowUp and ArrowDown will not move the keyboard focus to any of the items.
Addendum: I verified that the autoFocus property does not influence the behavior. It does not matter whether autoFocus is set or not.
Expected behavior 🤔
Without disablePortal the behavior is as expected: keyboard ArrowUp and ArrowDown keys will move the focus to the items and between the items.
Steps to reproduce 🕹
I prepared a codesandbox that exhibits the behavior
https://codesandbox.io/s/pensive-cache-xk9js4?file=/src/App.tsx
The relevant usage to elicit the bug is:
<Select MenuProps={{ disablePortal: true }}>
<MenuItem value="foo">{"foo"}</MenuItem>
</Select>
- click into the select
- use ArrowDown to move focus into the dropdown. but nothing happens.
Observation:
When disablePortal is set the dropdown paper will receive focus when the dropdown opens. This is not the case otherwise.
Context 🔦
No response
Your environment 🌎
No response
Duplicates
Latest version
Current behavior 😯
When I click into a
<Select>(withdisablePortal) the dropdown opens, but ArrowUp and ArrowDown will not move the keyboard focus to any of the items.Addendum: I verified that the
autoFocusproperty does not influence the behavior. It does not matter whetherautoFocusis set or not.Expected behavior 🤔
Without
disablePortalthe behavior is as expected: keyboard ArrowUp and ArrowDown keys will move the focus to the items and between the items.Steps to reproduce 🕹
I prepared a codesandbox that exhibits the behavior
https://codesandbox.io/s/pensive-cache-xk9js4?file=/src/App.tsx
The relevant usage to elicit the bug is:
Observation:
When
disablePortalis set the dropdown paper will receive focus when the dropdown opens. This is not the case otherwise.Context 🔦
No response
Your environment 🌎
No response