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

onFocus not firing on Select #4103

Closed
NgoKnows opened this issue Apr 27, 2016 · 3 comments
Closed

onFocus not firing on Select #4103

NgoKnows opened this issue Apr 27, 2016 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@NgoKnows
Copy link

Problem Description

onFocus not firing on select element, I essentially have this except it has menu elements inside of it:
<SelectField value={value} onFocus={() => console.log('I am focused')} />
and when I click in the select, no event is being fired.

Versions

  • Material-UI: v0.15.0-beta.2
  • React: 15
  • Browser: Chrome 49
@tintin1343 tintin1343 added bug 🐛 Something doesn't work duplicate This issue or pull request already exists labels Apr 27, 2016
@tintin1343
Copy link
Contributor

Duplicate of #3402

@krzysztof-grzybek
Copy link

I think this issue it's not duplicate and it should be reopened.

OnFocus prop is passed to DropDownMenu component, but it's not doing anything, it's only passed to div element.

Could You take a look at this ?

@oliviertassinari oliviertassinari removed the bug 🐛 Something doesn't work label Feb 22, 2017
@mayteio
Copy link

mayteio commented Mar 12, 2019

The same behaviour still occurs. I need to handle backspace press when a select is focussed. My workaround is to add an event listener to document onFocus and onBlur, but this just gets the div reference which is pretty useless.

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

5 participants