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] Clicking floatingLabelText changes SelectField to first item in list #934

Closed
bweggersen opened this issue Jun 24, 2015 · 0 comments · Fixed by #976
Closed
Labels
component: select This is the name of the generic UI component, not the React module!

Comments

@bweggersen
Copy link

When I click (what seems to be) floatingLabelText in a SelectField the value is changed to the first item in the list. See the gif screencast below.

issue-or-feature

I don't know if this is inteded to be a feature. To me it seems more like a bug.

I'm new to react, so I'm probably way off, but this is what I've found:

Screenshot 1:
http://d.pr/i/IPFt/2ZEQ2xvf
The issue occurs when I hit the green area, representing the <Menu /> tag. Also, I don't know how this is related to the "issue", but this.state.selectedIndex is a string, while it should be a number, as indicated by the warning.

Screenshot 2:
http://d.pr/i/1g4rM/2jvX057M
If I add console.log(key) to the event being raised when I hit the green area in the screenshot above, the value of key is 0, so it seems like the first item is actually clicked.

Any ideas?

@hai-cea hai-cea changed the title Clicking floatingLabelText changes SelectField to first item in list [SelectField] Clicking floatingLabelText changes SelectField to first item in list Jun 25, 2015
mnajdova pushed a commit to mnajdova/material-ui that referenced this issue Nov 10, 2020
* [mui#925] [mui#930] Support views and openTo props for InlineDatePicker

* [mui#929] Fix openTo prop always recognizing as year

* [mui#925] Rerun getDisplayDate on labelFunc change
@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 25, 2022
@zannager zannager added component: select This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: select This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants