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, DropDown] Empty value #5899

Closed
btzsoft opened this issue Jan 9, 2017 · 2 comments
Closed

[SelectField, DropDown] Empty value #5899

btzsoft opened this issue Jan 9, 2017 · 2 comments
Labels
component: menu This is the name of the generic UI component, not the React module! component: select This is the name of the generic UI component, not the React module! v0.x

Comments

@btzsoft
Copy link

btzsoft commented Jan 9, 2017

Problem description

Value of these components is missing, also child DropDown component contains undefined in id.

  <SelectField
     floatingLabelText="Frequency"
     value={"ssss"}
  >
    <MenuItem value={1} primaryText="Never" />
    <MenuItem value={2} primaryText="Every Night" />
    <MenuItem value={3} primaryText="Weeknights" />
    <MenuItem value={4} primaryText="Weekends" />
    <MenuItem value={5} primaryText="Weekly" />
 </SelectField>

screen shot 2017-01-09 at 7 41 52 pm

Versions

  • Material-UI: 0.16.4
  • React: 15.4.1
  • Browser: Chrome
@btzsoft
Copy link
Author

btzsoft commented Jan 9, 2017

Oh, I didn't know that value of SelectField should match with any from MenuItem

@btzsoft btzsoft closed this as completed Jan 9, 2017
@priyanshuchauhan
Copy link

Try putting this in your build:

var injectTapEventPlugin = require("react-tap-event-plugin");
   injectTapEventPlugin();

Make sure that function is ran before you render anything to page.

Reference: #1011

@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 21, 2022
@zannager zannager added component: menu This is the name of the generic UI component, not the React module! component: select This is the name of the generic UI component, not the React module! v0.x and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: menu This is the name of the generic UI component, not the React module! component: select This is the name of the generic UI component, not the React module! v0.x
Projects
None yet
Development

No branches or pull requests

4 participants