Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SelectField] Keypress does not focus on any option #9991

Closed
zsinryu opened this issue Jan 22, 2018 · 1 comment
Closed

[SelectField] Keypress does not focus on any option #9991

zsinryu opened this issue Jan 22, 2018 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@zsinryu
Copy link

zsinryu commented Jan 22, 2018

For select field, if we press keyboard, it should focus on the option start with the letter same as key press.

Give a simple select with 3 options:

<Select value={this.state.age} onChange={this.handleChange} inputProps={{ name: 'age', id: 'age-simple', }} > <MenuItem value=""> <em>None</em> </MenuItem> <MenuItem value={1}>One</MenuItem> <MenuItem value={10}>Ten</MenuItem> <MenuItem value={50}>Fifty</MenuItem> </Select>

Expected Behavior

Press O, the first option should be focused
Press F, the last option should be focused

Current Behavior

Press O, T or F does on the keyboard does not have any action.

Tech Version
Material-UI 1.0.0-beta.30
React 16.2.0
browser Chrome
etc
@oliviertassinari oliviertassinari added the duplicate This issue or pull request already exists label Jan 22, 2018
@oliviertassinari
Copy link
Member

Duplicate of #8191

@oliviertassinari oliviertassinari marked this as a duplicate of #8191 Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants